結果
| 問題 | No.1128 Wedding Ceremony |
| ユーザー |
|
| 提出日時 | 2024-11-02 01:47:56 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 425µs | |
| コード長 | 307 bytes |
| 記録 | |
| コンパイル時間 | 2,025 ms |
| コンパイル使用メモリ | 328,608 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-19 08:50:55 |
| 合計ジャッジ時間 | 3,539 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, e) for (int i = (int)s; i < (int)e; ++i)
#define all(a) (a).begin(), (a).end()
int main() {
cin.tie(nullptr);
ll N;
cin >> N;
if (N % 2 == 0) cout << N + 1 << '\n';
else cout << N << '\n';
}