結果
| 問題 | No.3400 Nana's Plus Permutation Game (7 + 7) ÷ 7 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-17 20:24:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 382 ms |
| コンパイル使用メモリ | 82,408 KB |
| 実行使用メモリ | 95,208 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2025-12-06 23:32:31 |
| 合計ジャッジ時間 | 17,792 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 77 |
ソースコード
import random M = [0] * (77778) prime = [] for i in range(2, 10001): if M[i] == 0: for j in range(2 * i, 77778, i): M[j] = 1 if 5 <= i <= 50: prime.append(i) cnt = 0 test = [] check = 0 while cnt <= 10001 and check <= 100000: check += 1 P = random.choice(prime) if P + cnt <= 10001: test.append(P) cnt += P print(*test)