結果

問題 No.1128 Wedding Ceremony
ユーザー megane_anko
提出日時 2021-02-17 21:33:52
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 8,794 ms
コンパイル使用メモリ 227,804 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-12-31 16:27:26
合計ジャッジ時間 10,146 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');

let N = parseInt(input);

if (N % 2 === 0) {
    console.log(N + 1);
} else {
    console.log(N);
}
0