結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-20 09:42:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 731 ms |
| コンパイル使用メモリ | 55,884 KB |
| 実行使用メモリ | 13,768 KB |
| 最終ジャッジ日時 | 2024-11-27 06:47:24 |
| 合計ジャッジ時間 | 130,546 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 3 TLE * 19 |
ソースコード
#include <iostream>
using namespace std;
#define REP(i,fast,last) for(int i=fast;i<last;i++)
long N;
int main(){
string result = "NO";
cin >> N;
if (N != 1) {
REP(i,2,N/2+1){
if (N%i == 0) result = "YES";
}
}
cout<<result<<endl;
}