結果

問題 No.2379 Burnside's Theorem
ユーザー nocturnal_1202nocturnal_1202
提出日時 2023-07-14 21:24:24
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,203 bytes
コンパイル時間 1,012 ms
コンパイル使用メモリ 119,576 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-10-14 11:20:41
合計ジャッジ時間 2,038 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,372 KB
testcase_01 AC 2 ms
4,372 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 5 ms
4,372 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 2 ms
4,372 KB
testcase_09 WA -
testcase_10 AC 2 ms
4,372 KB
testcase_11 AC 2 ms
4,372 KB
testcase_12 AC 2 ms
4,372 KB
testcase_13 AC 6 ms
4,372 KB
testcase_14 AC 9 ms
4,372 KB
testcase_15 AC 11 ms
4,372 KB
testcase_16 AC 2 ms
4,376 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 12 ms
4,372 KB
testcase_19 AC 5 ms
4,372 KB
testcase_20 AC 9 ms
4,372 KB
testcase_21 AC 12 ms
4,372 KB
testcase_22 AC 2 ms
4,376 KB
testcase_23 AC 12 ms
4,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <bitset>
#include <complex>
#include <cassert>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <math.h>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include<regex>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define rep(i,x) for(ll i=0;i<(ll)(x);i++)
#define rrep(i,x) for(ll i=1;i<=(ll)(x);i++)
#define all(v) v.begin(),v.end()
typedef pair<int, int> pii;
ll mod998 = 998244353;
ll mod109 = 1e9 + 7;
//vector<vector<int>> a(n,vector<int>(n));

int main(){

	ll n;
	cin >> n;
	int cnt = 0;
	ll k = n;
	for (ll i = 2; i * i <= k; i++) {
		if (n % i == 0) {
			cnt++;
			while (n % i == 0) {
				n /= i;
			}
			
		}
	}
	if (cnt <= 2)cout << "Yes" << endl;
	else cout << "No" << endl;
	
}


0