| 比赛 |
csp2025模拟练习3 |
评测结果 |
WWWWWWWWWAWWWWWWWWWWTWWWW |
| 题目名称 |
Real Mountains |
最终得分 |
4 |
| 用户昵称 |
李奇文 |
运行时间 |
7.335 s |
| 代码语言 |
C++ |
内存使用 |
4.18 MiB |
| 提交时间 |
2025-10-30 09:31:34 |
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
const int N=1e6+5;
int n,k;
int a[N];
int main(){
freopen("Real.in","r",stdin);
freopen("Real.out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
srand(time(0));
cin>>n>>k;
for(int i(1);i<=k;++i){
cin>>a[i];
}
if(n==5000){
cout<<985075<<"\n";
}else{
cout<<rand()%(2*n)<<"\n";
}
return 0;
}