結果
| 問題 | No.2379 Burnside's Theorem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-14 22:48:41 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 470 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 58,240 KB |
| 最終ジャッジ日時 | 2026-04-05 12:58:09 |
| 合計ジャッジ時間 | 1,708 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
N = int(input())
cnt = 0
lst = []
for i in range(2, N+1):
if N < i**2:
break
if N % i == 0:
while N % i == 0:
N //= i
lst.append(i)
cnt += 1
if N != 1:
cnt += 1
if cnt <= 2:
print('Yes')
else:
print('No')