結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
twice_l
|
| 提出日時 | 2017-12-27 23:54:09 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 586 ms |
| コンパイル使用メモリ | 84,208 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-05-28 00:46:00 |
| 合計ジャッジ時間 | 13,479 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 25 |
ソースコード
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
long long N;
cin >> N;
int count = 0;
for(int i=2; i<=N; ++i){
while(N%i == 0){
N /= i;
++count;
if(count == 3){
cout << "YES" << endl;
return 0;
}
}
}
cout << "NO" << endl;
return 0;
}
twice_l