結果
| 問題 | No.1058 素敵な数 |
| コンテスト | |
| ユーザー |
koheijkt
|
| 提出日時 | 2025-03-12 17:03:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 95,976 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-07-07 02:02:09 |
| 合計ジャッジ時間 | 1,850 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
koheijkt