結果

問題 No.1058 素敵な数
コンテスト
ユーザー cologne
提出日時 2025-12-02 15:59:55
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 64 ms / 2,000 ms
+ 83µs
コード長 344 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 241 ms
コンパイル使用メモリ 95,728 KB
実行使用メモリ 78,848 KB
最終ジャッジ日時 2026-07-17 06:04:38
合計ジャッジ時間 2,195 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
from itertools import groupby


def input(): return sys.stdin.readline().rstrip('\n')


def main():
    a = [100003, 100019, 100043, 100049, 100057, 100069, 100103, 100109, 100129]
    s = {1}
    for i in a:
        for j in a:
            s.add(i * j)
    print(sorted(s)[int(input()) - 1])


if __name__ == '__main__':
    main()
0