結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-18 01:32:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 1,716 ms |
| コンパイル使用メモリ | 172,808 KB |
| 実行使用メモリ | 13,824 KB |
| 最終ジャッジ日時 | 2024-11-30 08:16:15 |
| 合計ジャッジ時間 | 91,876 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 WA * 6 TLE * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
typedef long long ll;
int main(){
ll n; cin>>n;
map<ll,int> mp;
ll m=n; ll i=2;
while(1){
if(n%i==0){mp[i]++; n/=i; i=2;
}else{i++;}
if(i>m/2||n==1) break;
}
if(mp.empty()) cout<<"NO"<<endl;
else cout<<"YES"<<endl;
}