|
- #include<iostream>
- #include<cstdio>
- #include<string.h>
- #include<algorithm>
- using namespace std;
- int main()
- {
- int n,l,r;
- int l1,r1;
- int max = 0;
- int i,j;
- cin>>n>>l>>r;
- l1=l/n;
- r1=r/n;
- if(r1-l1>0)
- {
- max=n-1;
- }
- else
- {
- max=r%n;
- }
- cout<<max;
- return 0;
- }
复制代码
|
|