結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
ku_material_ro
|
| 提出日時 | 2016-09-27 09:26:32 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 78,368 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-15 12:17:21 |
| 合計ジャッジ時間 | 72,663 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 WA * 14 |
ソースコード
#include<iostream>
#include<string>
#include<math.h>
using namespace std;
int main(){
int n;
int a;
cin >> n;
int judge = 0;
for (int i = 2; i < n; i++){
a = (n / i) * i;
if (a == n){
judge = 1;
break;
}
}
if (judge == 1){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
}
ku_material_ro