我想问问为什么这份代码过不了样例但是能A
查看原帖
我想问问为什么这份代码过不了样例但是能A
229868
shenyuhang188楼主2023/4/12 19:25

RT

#include<bits/stdc++.h>
using namespace std;
int a, temp, ans;
int main(){
 	srand(19890604);
	cin >> a;
	temp = rand() % a + 1;
	for(int i = 1;i <= temp; ++i){
		cin >> ans;
	}
	cout << ans;
}
2023/4/12 19:25
加载中...