Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
28817 我要进前十(黄泽远) 分糖果 CSP 2021 J组 C++ 解答错误 0 MS 252 KB 257 2023-10-03 10:07:37

Tests(0/10):


#include "algorithm" #include "iostream" #define int long long using namespace std; int s[1000000]; signed main(){ int n,l,r; cin>>n>>l>>r; int j=0; for(int i=l;i<=r;i++){ s[j]=i%n; j++; } sort(s+1,s+j+1); cout<<s[j]; return 0; }


测评信息: