AC

我是小学生  •  1天前


include<bits/stdc++.h>

using namespace std;

int main(){

int n, L, R; 
cin>>n>>L>>R;
if(L/n < R/n) 
	cout<<n-1;    
else 
	cout<<R%n;             
return 0;

}


评论:

请先登录,才能进行评论