#include using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i>l>>r>>n; a1=l/n; b1=l%n; a2=r/n; b2=r%n; ll ans[n]; for(int i=0;i