結果
| 問題 |
No.2379 Burnside's Theorem
|
| コンテスト | |
| ユーザー |
オレンジジュース
|
| 提出日時 | 2023-07-21 02:02:43 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 425 bytes |
| コンパイル時間 | 2,040 ms |
| コンパイル使用メモリ | 191,616 KB |
| 最終ジャッジ日時 | 2025-02-15 16:03:08 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(0);
ll n; cin >> n;
int cnt = 0;
for (ll i = 2; i * i <= n; i++) {
if (n % i == 0) {
while (n % i == 0) {
n /= i;
}
cnt++;
}
}
if (n > 1) cnt++;
cout << (cnt <= 2 ? "Yes" : "No") << '\n';
return 0;
}
オレンジジュース