結果
問題 |
No.1058 素敵な数
|
ユーザー |
![]() |
提出日時 | 2020-05-24 21:56:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 376 bytes |
コンパイル時間 | 157 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 18,720 KB |
最終ジャッジ日時 | 2024-10-12 08:41:53 |
合計ジャッジ時間 | 11,696 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 7 |
ソースコード
N = int(input()) M = 10**5 L = [0]*(10*M+1) L2 = [] for i in range(2, 10*M+1): if L[i] == 0: j = 1 while i*j <= 10*M: L[i*j] = 1 j += 1 if i > M: L2.append(i) if len(L2) > N: break ans = [1] for i in range(N): for j in range(N): ans.append(L2[i]*L2[j]) ans.sort() print(ans[N-1])