結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
nmnmnmnmnmnmnm
|
| 提出日時 | 2014-10-08 00:56:43 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 401 bytes |
| 記録 | |
| コンパイル時間 | 501 ms |
| コンパイル使用メモリ | 84,556 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-06-03 23:23:22 |
| 合計ジャッジ時間 | 13,475 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 25 |
ソースコード
#include <algorithm>
#include <iostream>
#include <string.h>
#include <math.h>
using namespace std;
int main(){
long long n;
cin>>n;
if(n==1){
cout << "NO" << endl;
return 0;
}
int c = 0;
for(int i = 3; i*i <= n; i+=2){
if(n%i==0){
c++;
}
}
if(c<2){
cout << "NO" << endl;
return 0;
}
cout << "YES" << endl;
return 0;
}
nmnmnmnmnmnmnm