結果
| 問題 | No.192 合成数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-19 22:42:10 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 1,563 ms |
| コンパイル使用メモリ | 179,788 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-21 12:56:13 |
| 合計ジャッジ時間 | 11,567 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int N; cin >> N;
for( int i = max( 4, N - 100 ); i <= N + 100; ++i ){
int ng = 0;
for( int j = 2; j * j <= i; ++j )
ng |= i % j == 0;
if( not ng )
cout << i << endl,
exit( 0 );
}
return 0;
}