2 条题解
- 1
信息
- ID
- 968
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 6
- 标签
- (无)
- 递交数
- 56
- 已通过
- 16
- 上传者
#include<bits/stdc++.h>
using namespace std;
int main() {
int n,L,R;
cin>>n>>L>>R;
int max_remainder=(R/n)*n-1;
if (max_remainder>=L){
cout<<n-1<<endl;
}else{
cout<<R%n<<endl;
}
return 0;
}``````
你的代码绝对是抄的!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!