結果
| 問題 |
No.2379 Burnside's Theorem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-15 01:49:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 2,000 ms |
| コード長 | 859 bytes |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 82,072 KB |
| 実行使用メモリ | 65,664 KB |
| 最終ジャッジ日時 | 2024-09-16 10:28:52 |
| 合計ジャッジ時間 | 2,598 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
from collections import deque,defaultdict
from itertools import permutations
from functools import cmp_to_key
import math,sys,heapq,random,bisect,copy
def LMI() : return list(map(int,input().split()))
def LMS() : return list(map(str,input().split()))
def MI() : return map(int,input().split())
def LLI(N) : return [LMI() for _ in range(N)]
def LLS(N): return [LMS() for _ in range(N)]
def LS(N) : return [input() for _ in range(N)]
def LI(N) : return [int(input()) for _ in range(N)]
def II() : return int(input())
#入力
def Prime(N):
soinsuu=defaultdict(int)
LIMIT=int(N**0.5)
i=2
n=N
while i<=int(n**0.5):
if n%i==0:
soinsuu[i]+=1
n//=i
else:
i+=1
if n!=1:
soinsuu[n]+=1
return soinsuu
N=II()
a=Prime(N)
if len(a.keys())<=2:
print('Yes')
else:
print('No')