結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2014-10-10 16:44:35 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 459 bytes |
| 記録 | |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 88,240 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-09 14:40:56 |
| 合計ジャッジ時間 | 17,167 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 25 |
ソースコード
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
#include <queue>
using namespace std;
/*
184 //名前が 184
これだけで解けるとは・・・
*/
int main(){
long long n;
scanf("%I64d",&n);//%d%d%d%d",&n,&v,&x,&y,&ax,&ay);
int cnt=0;
for(int i=2;i*i<=n;i++)if(n%i==0)cnt++;
printf(cnt<=2?"NO\n":"YES""\n");
return 0;
}
184