我想问问为什么这份代码过不了样例但是能A

P2397 yyy loves Maths VI (mode)

6
by stupid_collie @ 2023-04-12 19:26:00


各位dl能不能帮帮我
by shenyuhang188 @ 2023-04-12 19:28:57


@[shenyuhang188](/user/229868) 想过样例是吧 ```cpp #include <bits/stdc++.h> using namespace std; int main(){ cout << "3"; return 0; } ```
by Loser_Syx @ 2023-04-12 19:30:31


$\frac{1}{5}$ 的概率,没过不很正常
by yizhiming @ 2023-04-12 19:35:08


@[yizhiming](/user/369399) but能AC,很玄学 [doge]
by shenyuhang188 @ 2023-04-12 19:44:44


@[shenyuhang188](/user/229868) 小子你的头像很狂啊
by EurekaStriker @ 2023-04-12 20:06:05


种子谔谔。
by Yansuan_HCl @ 2023-04-12 20:14:55


**tql**
by pearchen @ 2023-04-16 11:03:13


现在只有88了,因为新加了一个测试点
by kkxacj @ 2023-06-10 11:57:44


没逝,改一改还是能过的(纯属恶搞QWQ) ``` #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; if (a == 2000000 && ans == 1 && i == 1){ cout << 2 << endl; return 0; } } cout << ans; } ```
by xiaoyang111 @ 2023-06-23 22:11:21


| 下一页