結果

問題 No.192 合成数
ユーザー utsumidaisukeutsumidaisuke
提出日時 2017-03-11 23:36:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,928 KB
最終ジャッジ日時 2023-09-06 19:21:39
合計ジャッジ時間 3,600 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,824 KB
testcase_01 AC 18 ms
7,760 KB
testcase_02 AC 18 ms
7,756 KB
testcase_03 AC 19 ms
7,904 KB
testcase_04 AC 19 ms
7,868 KB
testcase_05 WA -
testcase_06 AC 20 ms
7,872 KB
testcase_07 AC 19 ms
7,792 KB
testcase_08 AC 18 ms
7,892 KB
testcase_09 AC 18 ms
7,892 KB
testcase_10 WA -
testcase_11 AC 19 ms
7,736 KB
testcase_12 WA -
testcase_13 AC 18 ms
7,736 KB
testcase_14 AC 19 ms
7,820 KB
testcase_15 AC 19 ms
7,728 KB
testcase_16 AC 18 ms
7,752 KB
testcase_17 AC 19 ms
7,836 KB
testcase_18 AC 18 ms
7,760 KB
testcase_19 WA -
testcase_20 AC 19 ms
7,780 KB
testcase_21 AC 19 ms
7,816 KB
testcase_22 AC 18 ms
7,904 KB
testcase_23 AC 18 ms
7,860 KB
testcase_24 AC 20 ms
7,928 KB
testcase_25 AC 18 ms
7,780 KB
testcase_26 AC 19 ms
7,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

mn = n-100
mx = n+100

nls = list(range(n-100, n+101))

d = nls[1:-1]

for i in [-3, -2, -1, 0, 1, 2, 3]:
    if i in d:
        d.remove(i)
#print(d)
#print(nls)

cnt = 0
while cnt <=2:
    for i in nls:
        for j in d:
            if i%j == 0:
                cnt +=1 
print(i)
0