#include #include #include using namespace std; using lint=int64_t; lint L,R,N; lint LL,RR; map m; /* lint check(lint i) { lint l=0; lint r=1e9; for(;r-l>1;) { lint mid=(l+r)/2; if(i+N*mid<=r) } } */ int main() { cin >> L >> R >> N; for(lint i=L;i=R-N;i--) { if(i%N==0) { RR=i; break; } m[i%N]++; } for(lint i=0;i