观察得2021为43和47的倍数首先写出43倍数,47倍数,2021倍数个数的函数,和其区间中包含个数的函数我是如下图写的 long long S1(long long x){ return x/43; } long long S2(long long x){ return x/47; } long long S3(long long x){ return x/2021; } long long s1(long long l,long long r){ return S1(r)-S1(l-1); } long long s2(long long l,long l...