結果
| 問題 | No.2379 Burnside's Theorem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-16 10:13:59 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 42 ms / 2,000 ms |
| + 297µs | |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 65,152 KB |
| 実行使用メモリ | 59,756 KB |
| 最終ジャッジ日時 | 2026-10-14 00:28:35 |
| 合計ジャッジ時間 | 2,697 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 21 |
ソースコード
from collections import Counter
N = int(input())
primes = []
for i in range(2, int(N ** 0.5) + 1):
while N % i == 0:
primes.append(i)
N //= i
if N >= 2:
primes.append(N)
cnt_kinds = Counter(primes)
if len(list(cnt_kinds.keys())) <= 2:
print("Yes")
else:
print("No")