結果

問題 No.2379 Burnside's Theorem
ユーザー tassei903tassei903
提出日時 2023-07-14 21:27:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 554 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 76,016 KB
最終ジャッジ日時 2023-10-14 11:25:05
合計ジャッジ時間 3,164 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,228 KB
testcase_01 AC 67 ms
71,060 KB
testcase_02 AC 67 ms
71,488 KB
testcase_03 AC 75 ms
75,792 KB
testcase_04 AC 71 ms
75,580 KB
testcase_05 AC 70 ms
75,812 KB
testcase_06 AC 71 ms
75,920 KB
testcase_07 AC 71 ms
75,736 KB
testcase_08 AC 69 ms
75,884 KB
testcase_09 AC 71 ms
75,904 KB
testcase_10 AC 69 ms
75,848 KB
testcase_11 AC 77 ms
75,704 KB
testcase_12 AC 71 ms
75,872 KB
testcase_13 AC 78 ms
75,684 KB
testcase_14 AC 82 ms
75,632 KB
testcase_15 AC 83 ms
75,632 KB
testcase_16 AC 71 ms
75,808 KB
testcase_17 AC 71 ms
75,856 KB
testcase_18 AC 88 ms
76,016 KB
testcase_19 AC 77 ms
75,924 KB
testcase_20 AC 82 ms
75,784 KB
testcase_21 AC 87 ms
75,780 KB
testcase_22 AC 69 ms
71,452 KB
testcase_23 AC 90 ms
75,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
n = ni()

i = 2
a = 0
N = n
while i * i <= N:
    if n % i == 0:
        a += 1
        while n % i == 0:
            n //= i
    i += 1

if n != 1:
    a += 1
    
if a <= 2:
    Yes()
else:
    No()
0