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