結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
e869120
|
| 提出日時 | 2017-03-31 23:45:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| コンパイル時間 | 496 ms |
| コンパイル使用メモリ | 62,848 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-07 06:29:46 |
| 合計ジャッジ時間 | 3,331 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 TLE * 1 -- * 22 |
ソースコード
#include<iostream>
using namespace std;
int n, i;
int main() {
cin >> n; i++; i++;
while ((n%i))i++;
if (i == n)cout << "YES" << endl; else cout << "NO" << endl;
}
e869120