結果

問題 No.36 素数が嫌い!
ユーザー mkawa2mkawa2
提出日時 2020-01-02 22:50:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 231 ms / 5,000 ms
コード長 229 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 75,748 KB
最終ジャッジ日時 2023-08-14 18:42:56
合計ジャッジ時間 4,769 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,920 KB
testcase_01 AC 82 ms
75,568 KB
testcase_02 AC 77 ms
71,288 KB
testcase_03 AC 71 ms
71,304 KB
testcase_04 AC 72 ms
71,188 KB
testcase_05 AC 75 ms
75,712 KB
testcase_06 AC 74 ms
75,500 KB
testcase_07 AC 75 ms
75,428 KB
testcase_08 AC 71 ms
71,212 KB
testcase_09 AC 71 ms
71,176 KB
testcase_10 AC 70 ms
71,072 KB
testcase_11 AC 127 ms
75,624 KB
testcase_12 AC 230 ms
75,736 KB
testcase_13 AC 231 ms
75,632 KB
testcase_14 AC 77 ms
75,596 KB
testcase_15 AC 71 ms
71,164 KB
testcase_16 AC 72 ms
71,436 KB
testcase_17 AC 71 ms
71,268 KB
testcase_18 AC 71 ms
71,348 KB
testcase_19 AC 71 ms
71,380 KB
testcase_20 AC 80 ms
75,736 KB
testcase_21 AC 72 ms
71,048 KB
testcase_22 AC 71 ms
70,928 KB
testcase_23 AC 71 ms
71,432 KB
testcase_24 AC 98 ms
75,624 KB
testcase_25 AC 75 ms
71,148 KB
testcase_26 AC 134 ms
75,748 KB
testcase_27 AC 80 ms
75,724 KB
testcase_28 AC 132 ms
75,612 KB
testcase_29 AC 77 ms
75,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
first=True
d=2
while 1:
    if n%d==0:
        if first:
            n//=d
            d=1
            first=False
        else:
            print("YES")
            exit()
    d+=1
    if d**2>n:break
print("NO")
0