結果
問題 |
No.1058 素敵な数
|
ユーザー |
|
提出日時 | 2022-03-22 23:19:18 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 325 bytes |
コンパイル時間 | 423 ms |
コンパイル使用メモリ | 82,252 KB |
実行使用メモリ | 66,384 KB |
最終ジャッジ日時 | 2024-10-10 17:41:30 |
合計ジャッジ時間 | 1,651 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 8 |
ソースコード
M = 2*10**5 prime = [0]*M cand = [] for i in range(2,M): if prime[i]: continue if i > 10**5: cand.append(i) for j in range(i,M,i): prime[j] = 1 n = int(input()) cand = cand[:20] ans = [1] for c in cand: for c in cand: ans.append(c*c) ans = sorted(set(ans)) print(ans[n-1])