結果
| 問題 |
No.2379 Burnside's Theorem
|
| コンテスト | |
| ユーザー |
遭難者
|
| 提出日時 | 2023-07-14 21:58:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 199 bytes |
| コンパイル時間 | 461 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 57,856 KB |
| 最終ジャッジ日時 | 2024-09-16 06:57:23 |
| 合計ジャッジ時間 | 2,184 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
n = int(input())
cnt = 0
c = 2
while c * c <= n:
if n % c == 0:
while n % c == 0:
n //= c
cnt += 1
c += 1
if n > 1:
cnt += 1
print("Yes" if cnt <= 2 else "No")
遭難者