結果
| 問題 | No.1128 Wedding Ceremony |
| ユーザー |
megane_anko
|
| 提出日時 | 2021-02-17 21:33:52 |
| 言語 | TypeScript (6.0.2) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 4,592 ms |
| コンパイル使用メモリ | 350,284 KB |
| 実行使用メモリ | 53,236 KB |
| 最終ジャッジ日時 | 2026-06-05 05:07:23 |
| 合計ジャッジ時間 | 9,580 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
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);
}
megane_anko