結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-17 12:51:45 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 507 ms |
| コンパイル使用メモリ | 70,784 KB |
| 実行使用メモリ | 9,600 KB |
| 最終ジャッジ日時 | 2026-05-16 14:51:31 |
| 合計ジャッジ時間 | 13,439 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 25 |
ソースコード
#include <iostream>
#include <cstdint>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int64_t n;
cin >> n;
if (n <= 7) {
cout << "NO" << endl;
return 0;
}
int count = 0;
for (int i = 2; i * i <= n; i++) {
while (n % i == 0) {
n /= i;
count++;
}
}
cout << (count >= 3 ? "YES" : "NO") << endl;
}