結果

問題 No.36 素数が嫌い!
ユーザー mkawa2mkawa2
提出日時 2019-12-17 23:37:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 233 ms / 5,000 ms
コード長 229 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 75,996 KB
最終ジャッジ日時 2023-09-18 07:30:17
合計ジャッジ時間 4,483 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,172 KB
testcase_01 AC 80 ms
75,552 KB
testcase_02 AC 73 ms
71,256 KB
testcase_03 AC 73 ms
71,228 KB
testcase_04 AC 71 ms
71,120 KB
testcase_05 AC 78 ms
75,604 KB
testcase_06 AC 77 ms
75,716 KB
testcase_07 AC 76 ms
75,460 KB
testcase_08 AC 73 ms
70,940 KB
testcase_09 AC 74 ms
71,272 KB
testcase_10 AC 73 ms
71,048 KB
testcase_11 AC 128 ms
75,920 KB
testcase_12 AC 230 ms
75,412 KB
testcase_13 AC 233 ms
75,996 KB
testcase_14 AC 78 ms
75,772 KB
testcase_15 AC 74 ms
71,308 KB
testcase_16 AC 74 ms
71,172 KB
testcase_17 AC 75 ms
71,336 KB
testcase_18 AC 75 ms
71,056 KB
testcase_19 AC 74 ms
71,248 KB
testcase_20 AC 84 ms
75,784 KB
testcase_21 AC 74 ms
71,244 KB
testcase_22 AC 75 ms
70,940 KB
testcase_23 AC 76 ms
71,256 KB
testcase_24 AC 101 ms
75,776 KB
testcase_25 AC 74 ms
71,252 KB
testcase_26 AC 134 ms
75,512 KB
testcase_27 AC 82 ms
75,672 KB
testcase_28 AC 134 ms
75,500 KB
testcase_29 AC 79 ms
75,680 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