結果
問題 | No.192 合成数 |
ユーザー |
![]() |
提出日時 | 2017-03-12 04:31:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 625 ms |
コンパイル使用メモリ | 74,996 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 02:09:59 |
合計ジャッジ時間 | 1,628 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <iomanip> using namespace std; using ll = long long; int main() { int N; cin >> N; for(int i=N-100; i<=N+100; ++i) { for(int j=2; j<i; ++j) { if(i % j == 0) { cout << i << endl; return 0; } } } }