結果
| 問題 | No.1058 素敵な数 |
| コンテスト | |
| ユーザー |
学ぶマン
|
| 提出日時 | 2025-03-12 17:03:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| コンパイル時間 | 390 ms |
| コンパイル使用メモリ | 82,756 KB |
| 実行使用メモリ | 53,552 KB |
| 最終ジャッジ日時 | 2025-03-12 17:03:31 |
| 合計ジャッジ時間 | 1,596 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 1 |
ソースコード
from itertools import combinations_with_replacement
N = int(input())
candi = [0, 1]
material = [100003, 100019, 100043, 100049, 100057]
for a, b in combinations_with_replacement(material, 2):
candi.append(a*b)
candi.sort()
ans = candi[N]
print(ans)
学ぶマン