https://www.luogu.com.cn/problem/P7909?contestId=54994
分析
无。
#include <bits/stdc++.h>
using namespace std;
#define LL long long
LL n,l,r;
int main()
{
scanf("%lld%lld%lld",&n,&l,&r);
LL k1=l/n*n;
if(k1+n>r)printf("%lld",r%n);
else printf("%lld",n-1);
return 0;
}