結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
machy
|
| 提出日時 | 2015-07-25 18:35:20 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 426 ms |
| コンパイル使用メモリ | 71,024 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-03-30 07:56:31 |
| 合計ジャッジ時間 | 12,849 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 25 |
ソースコード
#include <iostream>
using namespace std;
typedef long long LL;
int main(){
LL N;
cin >> N;
int cnt = 0;
for(int p = 2; p*p <= N; p++){
while(N % p == 0){
cnt += 1;
N /= p;
if(cnt >= 3) break;
}
}
if(N > 1) cnt += 1;
if(cnt >= 3){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
}
machy