关于T1
查看原帖
关于T1
544459
xhz_楼主2021/10/23 17:45
#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,l,r;cin>>n>>l>>r;
	if(l+n<=r)cout<<n-1;
	else cout<<max(l%n,r%n);
	return 0;
}

例如,数据 4 10 13 就不对,但是我提交后民间数据可以100分。

2021/10/23 17:45
加载中...