結果
問題 |
No.2379 Burnside's Theorem
|
ユーザー |
|
提出日時 | 2024-01-23 16:29:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 10 ms / 2,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 1,948 ms |
コンパイル使用メモリ | 197,704 KB |
最終ジャッジ日時 | 2025-02-18 22:25:05 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define int long long signed main(){ int n; cin >> n; map<int,int> m; for(int i = 2;i * i <= n;i++){ while(n % i == 0){ m[i]++; n /= i; } } if(n != 1) m[n]++; if(m.size() <= 2) cout << "Yes"; else cout << "No"; }