結果

問題 No.2379 Burnside's Theorem
ユーザー nikoro256nikoro256
提出日時 2023-07-14 22:29:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 75,900 KB
最終ジャッジ日時 2023-10-14 12:45:26
合計ジャッジ時間 3,346 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,332 KB
testcase_01 AC 71 ms
71,580 KB
testcase_02 AC 68 ms
71,200 KB
testcase_03 AC 76 ms
75,796 KB
testcase_04 AC 73 ms
75,712 KB
testcase_05 AC 73 ms
75,900 KB
testcase_06 AC 71 ms
75,744 KB
testcase_07 AC 72 ms
75,760 KB
testcase_08 AC 71 ms
75,516 KB
testcase_09 AC 73 ms
75,748 KB
testcase_10 AC 73 ms
75,796 KB
testcase_11 AC 73 ms
75,800 KB
testcase_12 AC 75 ms
75,736 KB
testcase_13 AC 79 ms
75,600 KB
testcase_14 AC 82 ms
75,644 KB
testcase_15 AC 85 ms
75,656 KB
testcase_16 AC 72 ms
75,812 KB
testcase_17 AC 72 ms
75,736 KB
testcase_18 AC 89 ms
75,812 KB
testcase_19 AC 77 ms
75,728 KB
testcase_20 AC 84 ms
75,564 KB
testcase_21 AC 87 ms
75,868 KB
testcase_22 AC 70 ms
71,360 KB
testcase_23 AC 87 ms
75,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N=int(input())
use=set()
for i in range(2,math.ceil(math.sqrt(N))):
    while N%i==0:
        N//=i
        use.add(i)
if N!=1:
    use.add(N)
if len(use)<=2:
    print('Yes')
else:
    print('No')
0