結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-25 10:17:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 332 bytes |
| コンパイル時間 | 1,789 ms |
| コンパイル使用メモリ | 165,644 KB |
| 実行使用メモリ | 13,768 KB |
| 最終ジャッジ日時 | 2024-12-24 19:41:45 |
| 合計ジャッジ時間 | 92,865 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 TLE * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
long long n; cin >> n;
long long cnt = 0;
for(long long i = 2; i <= n; i++) {
while(n % i == 0) {
n /= i;
cnt++;
}
}
if(cnt >= 3) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}