結果
| 問題 |
No.2379 Burnside's Theorem
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-02-05 19:53:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 1,265 bytes |
| コンパイル時間 | 4,309 ms |
| コンパイル使用メモリ | 214,584 KB |
| 実行使用メモリ | 16,848 KB |
| 最終ジャッジ日時 | 2025-02-05 19:54:14 |
| 合計ジャッジ時間 | 45,109 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 TLE * 13 |
ソースコード
// ?????? ????? ??????????? ???????????
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;
#define pb push_back
#define all(x) x.begin(), x.end()
#define int long long
#define py cout << "Yes\n";
#define pn cout << "No\n";
#define forn(a, b) for (int i = a; i < b; i++)
#define nl cout << endl;
#define pii pair<int, int>
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
const int mod = 1e9 + 7;
void solve();
signed main(void)
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int tc = 1;
while (tc--)
solve();
return 0;
}
bool isPrime(int n)
{
for (int i = 2; i <= sqrt(n); i++)
{
if (n % i == 0)
return false;
}
return true;
}
void solve()
{
int n;
cin >> n;
int count = 0;
for (int i = 2; i <= n / 2; i++)
{
if (!isPrime(i))
{
continue;
}
if (n % i == 0)
count++;
if (count > 2)
break;
}
if (count > 2)
{
pn;
}
else
{
py;
}
}
vjudge1