結果
| 問題 | 
                            No.2379 Burnside's Theorem
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  | 
                    
| 提出日時 | 2023-07-14 22:00:49 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 281 bytes | 
| コンパイル時間 | 954 ms | 
| コンパイル使用メモリ | 78,428 KB | 
| 最終ジャッジ日時 | 2025-02-15 14:03:23 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 9 TLE * 1 -- * 10 | 
ソースコード
#include <iostream>
#include <map>
using namespace std;
int main(){
	long long a;cin>>a;
	map<long long, int> X;
	for(int 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;
	
}