結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-17 12:39:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 357 bytes |
| コンパイル時間 | 478 ms |
| コンパイル使用メモリ | 54,136 KB |
| 実行使用メモリ | 8,448 KB |
| 最終ジャッジ日時 | 2024-11-22 13:07:59 |
| 合計ジャッジ時間 | 109,641 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 5 WA * 4 TLE * 17 |
ソースコード
#include <iostream>
#include <cstdint>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int64_t n;
cin >> n;
if (n == 1) {
cout << "NO" << endl;
return 0;
}
int count = 2;
for (int i = 2; i * i <= n; i++) {
if (n % i == 0) {
count++;
}
}
cout << (count >= 3 ? "YES" : "NO") << endl;
}