結果
問題 |
No.1128 Wedding Ceremony
|
ユーザー |
![]() |
提出日時 | 2021-03-04 09:47:31 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 120 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 2,870 ms |
コンパイル使用メモリ | 74,280 KB |
実行使用メモリ | 54,444 KB |
最終ジャッジ日時 | 2024-10-04 13:22:15 |
合計ジャッジ時間 | 6,468 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 |
ソースコード
import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); sc.close(); System.out.println(x % 2== 0 ? x + 1 : x); } }