結果

問題 No.2379 Burnside's Theorem
ユーザー オレンジジュース
提出日時 2023-07-21 02:02:07
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 2,025 ms
コンパイル使用メモリ 192,396 KB
最終ジャッジ日時 2025-02-15 16:02:59
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 16 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using ll = long long;

int main() {
    cin.tie(0);
    ios_base::sync_with_stdio(0);

    ll n; cin >> n;
    int cnt = 0;
    for (ll i = 2; i * i <= n; i++) {
        if (n % i == 0) {
            while (n % i == 0) {
                n /= i;
            }
            cnt++;
        }
    }
    cout << (cnt <= 2 ? "Yes" : "No") << '\n';
    return 0;
}
0