| 记录编号 | 568520 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 3615.[CSP 2021J]分糖果 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.000 s | ||
| 提交时间 | 2022-01-13 09:33:55 | 内存使用 | 0.00 MiB | ||
#include <iostream>
#define OPEN(_x) freopen(#_x".in", "r", stdin); freopen(#_x".out", "w", stdout)
using namespace std;
int main() {
OPEN(candy);
ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int n, l, r; cin>>n>>l>>r;
int L = l/n, R = r/n;
if(L==R) cout<<r%n<<endl;
else cout<<n-1<<endl;
return 0;
}