結果
問題 |
No.2379 Burnside's Theorem
|
ユーザー |
|
提出日時 | 2023-07-14 21:25:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 1,859 ms |
コンパイル使用メモリ | 197,412 KB |
最終ジャッジ日時 | 2025-02-15 10:35:03 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N; cin>>N; set<ll>ans; for(ll i=2;i*i<=N;i++){ if(N%i==0){ ans.insert(i); while(N%i==0)N/=i; } } if(N!=1)ans.insert(N); cout<<(ans.size()<=2?"Yes\n":"No\n"); }