Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
34898 | xujindong | [CSP-J2021]分糖果 | C++ | Accepted | 100 | 0 MS | 240 KB | 157 | 2021-12-12 22:46:00 |
#include <bits/stdc++.h> using namespace std; int main() { int n,l,r; cin>>n>>l>>r; cout<<(((r/n)-(l/n))==0?(r%n):(n-1))<<endl; return 0; }