結果

問題 No.689 E869120 and Constructing Array 3
ユーザー kerotono
提出日時 2018-05-18 23:32:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 482 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-06-28 14:01:06
合計ジャッジ時間 4,103 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 10 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#!python
# -*- coding: utf-8 -*-


def main():
    K = int(input())

    T = []
    ONE = []

    for n in range(11, 1000000):
        for i in T:
            if n % i == 0:
                break
        else:
            T.append(n)
            if n % 10 == 1:
                ONE.append(n - 1)
                if len(ONE) == 100:
                    print(*ONE, end='')
                    break
    if K % 100 > 50 and K > 250:
        1/0

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