P7909 70分 我太蒻了
查看原帖
P7909 70分 我太蒻了
591668
Walker_Sama楼主2022/7/10 11:42
#include<bits/stdc++.h>
using namespace std;
int n,l,r;
int main(){
	cin>>n>>l>>r;
	if(l/r==r/l || r-l<n){
		cout<<r%n;
	}
	else{
		cout<<n-1;
	}
	return 0;
}

qwq 求改

2022/7/10 11:42
加载中...