結果
問題 | No.2379 Burnside's Theorem |
ユーザー | 👑 CleyL |
提出日時 | 2023-07-14 22:01:11 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 80,896 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 07:01:48 |
合計ジャッジ時間 | 1,843 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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; }