結果
問題 |
No.2379 Burnside's Theorem
|
ユーザー |
|
提出日時 | 2023-07-14 21:23:32 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 420 bytes |
コンパイル時間 | 2,644 ms |
コンパイル使用メモリ | 243,440 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 06:09:37 |
合計ジャッジ時間 | 3,428 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; using i64 = int64_t; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); i64 n; cin >> n; int count = 0; for (i64 i = 2; i * i <= n; i += 1) { if (n % i == 0) { while (n % i == 0) { n /= i; } count += 1; } } count += n > 1; cout << (count <= 2 ? "Yes" : "No"); }