結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
fiord
|
| 提出日時 | 2015-05-28 01:16:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 298 bytes |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 55,888 KB |
| 実行使用メモリ | 9,888 KB |
| 最終ジャッジ日時 | 2024-07-06 12:04:56 |
| 合計ジャッジ時間 | 12,755 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 25 |
ソースコード
#include <iostream>
using namespace std;
typedef long long int ll;
int main(){
ll n; cin>>n;
int cnt=0;
for(int i=2;i*i<=n;i++){
if(n%i==0){
cnt++;
n/=i;
i--;
if(cnt>=3){
break;
}
}
}
if(n>=2) cnt++;
if(cnt>=3) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
fiord