| 记录编号 | 566399 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 3615.[CSP 2021J]分糖果 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.006 s | ||
| 提交时间 | 2021-11-07 18:43:52 | 内存使用 | 5.74 MiB | ||
#include<bits/stdc++.h>
using namespace std;
long long n,l,r,ans;
int main(){
freopen("csp2021pj_candy.in","r",stdin);
freopen("csp2021pj_candy.out","w",stdout);
cin>>n>>l>>r;
if(l/n==r/n) cout<<r%n;
else cout<<n-1;
return 0;
}