第九个超时了大佬帮忙看下为什么
查看原帖
第九个超时了大佬帮忙看下为什么
959317
shark_little楼主2023/5/7 10:18
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,r,l,s=0,j=0;
	cin>>n>>l>>r;
	for (int i = l; i <= r; i++)
	{
		j=i%n;
		s=max(j,s);
	}
	cout<<s;
	return 0;
} 
2023/5/7 10:18
加载中...