結果

問題 No.192 合成数
ユーザー ooooobaoooooba
提出日時 2021-01-24 21:01:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 1,142 ms
コンパイル使用メモリ 102,408 KB
最終ジャッジ日時 2025-01-18 07:58:50
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main() {
    int32_t n;
    cin >> n;
    cout << (n % 2 == 0 ? n : n + 1) << endl;
    return 0;
}
0