#include #include #include #include #include #include #include using namespace std; int main(){ long long l,r; int n; cin >> l >> r >> n; vector a; vector b(n,0); long long cnt=0; for(long long i=l;i<=r;i++){ if(b[i%n]==0){ a.push_back(i%n); b[i%n]++; cnt++; }else{ break; } } long long add=(r-l+1)/cnt - 1; for(int i=0;i