結果

問題 No.192 合成数
ユーザー utsumidaisuke
提出日時 2017-03-11 23:36:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-24 13:47:12
合計ジャッジ時間 2,930 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 4
権限があれば一括ダウンロードができます

ソースコード

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