結果
問題 |
No.1058 素敵な数
|
ユーザー |
![]() |
提出日時 | 2025-03-12 17:05:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 323 ms |
コンパイル使用メモリ | 82,296 KB |
実行使用メモリ | 53,680 KB |
最終ジャッジ日時 | 2025-03-12 17:05:14 |
合計ジャッジ時間 | 1,602 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
from itertools import combinations_with_replacement N = int(input()) candi = [0, 1] material = [100003, 100019, 100043, 100049, 100057, 100069, 100103, 100109, 100129, 100151, 100153, 100169] for a, b in combinations_with_replacement(material, 2): candi.append(a*b) candi.sort() ans = candi[N] print(ans)