結果

問題 No.689 E869120 and Constructing Array 3
ユーザー kerotonokerotono
提出日時 2018-05-18 23:31:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 470 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-10 23:13:22
合計ジャッジ時間 4,240 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 WA -
testcase_08 WA -
testcase_09 RE -
testcase_10 WA -
testcase_11 RE -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

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:
        1/0

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