結果
| 問題 | No.3115 One Power One Kill |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-04-18 22:15:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 492 bytes |
| 記録 | |
| コンパイル時間 | 344 ms |
| コンパイル使用メモリ | 82,644 KB |
| 実行使用メモリ | 81,520 KB |
| 平均クエリ数 | 2.00 |
| 最終ジャッジ日時 | 2025-04-18 22:15:38 |
| 合計ジャッジ時間 | 5,550 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
ソースコード
from random import randrange
def eratosthenes(n):
sieve = [True] * (n + 1)
for i in range(int(n**0.5) + 1):
if i < 2:
sieve[i] = False
elif sieve[i]:
for j in range(2, n//i + 1):
sieve[i * j] = False
ans = []
for i in range(n+1):
if sieve[i]:
ans.append(i)
return ans
E = eratosthenes(10**5)
E = E[len(E)//2:]
R = E[randrange(len(E))]
print(R-1, R)
K = int(input())
print(1)
ans = int(input())
detteiuu