結果

問題 No.36 素数が嫌い!
ユーザー magurogumamaguroguma
提出日時 2017-08-08 18:56:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-20 05:15:57
合計ジャッジ時間 26,630 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,624 KB
testcase_01 AC 102 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 26 ms
10,624 KB
testcase_04 AC 26 ms
10,624 KB
testcase_05 AC 37 ms
10,624 KB
testcase_06 AC 38 ms
10,624 KB
testcase_07 AC 40 ms
10,624 KB
testcase_08 AC 26 ms
10,624 KB
testcase_09 AC 26 ms
10,624 KB
testcase_10 AC 26 ms
10,624 KB
testcase_11 AC 1,363 ms
10,752 KB
testcase_12 AC 4,205 ms
10,752 KB
testcase_13 AC 4,009 ms
10,752 KB
testcase_14 WA -
testcase_15 AC 27 ms
10,624 KB
testcase_16 AC 27 ms
10,752 KB
testcase_17 AC 26 ms
10,624 KB
testcase_18 AC 27 ms
10,624 KB
testcase_19 AC 27 ms
10,752 KB
testcase_20 AC 156 ms
10,624 KB
testcase_21 AC 26 ms
10,624 KB
testcase_22 AC 25 ms
10,624 KB
testcase_23 AC 26 ms
10,624 KB
testcase_24 AC 579 ms
10,624 KB
testcase_25 AC 26 ms
10,624 KB
testcase_26 AC 2,443 ms
10,752 KB
testcase_27 AC 3,441 ms
10,624 KB
testcase_28 AC 2,380 ms
10,752 KB
testcase_29 AC 3,873 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

i = 2
divisors = []
while i*i <= N:
    remainder = N % i
    if remainder == 0:
        divisors.append(i)
    if len(divisors) == 2:
        print('YES')
        exit()
    i += 1
print('NO')
0