結果
| 問題 | No.2379 Burnside's Theorem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-23 16:24:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 1,980 ms |
| コンパイル使用メモリ | 198,160 KB |
| 最終ジャッジ日時 | 2025-02-18 22:24:57 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 5 WA * 15 |
ソースコード
#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(m.size() == 2) cout << "Yes";
else cout << "No";
}