分糖果(candy)
发布时间
阅读量:
阅读量
样例 1 解释
#include<bits/stdc++.h>
using namespace std;
long long n,l,r,t;
int main()
{
cin>>n>>l>>r;
t=l%n+r-l;
if(t>=n-1)cout<<n-1;
else cout<<t;
return 0;
}
全部评论 (0)
还没有任何评论哟~
