using namespace std; int main(){ long long n,l,r; cin>>n>>l>>r; int ans=r-r%n+(n+1); if(ans>r){ cout<<r%n; return 0; } cout<<ans; return 0; }
求助