結果
| 問題 |
No.2379 Burnside's Theorem
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-07-14 22:01:11 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 713 ms |
| コンパイル使用メモリ | 76,420 KB |
| 最終ジャッジ日時 | 2025-02-15 14:03:34 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <map>
using namespace std;
int main(){
long long a;cin>>a;
map<long long, int> X;
for(long long i = 2; a >= i*i; i++){
while(a%i == 0){
X[i]++;
a/=i;
}
}
if(a!=1)X[a]++;
if(X.size() <= 2)cout << "Yes" << endl;
else cout << "No" << endl;
}