結果

問題 No.1128 Wedding Ceremony
ユーザー tentententen
提出日時 2020-08-17 23:07:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 1,668 ms
コンパイル使用メモリ 74,916 KB
実行使用メモリ 54,520 KB
最終ジャッジ日時 2024-04-19 19:17:01
合計ジャッジ時間 4,984 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
52,904 KB
testcase_01 AC 101 ms
52,996 KB
testcase_02 AC 101 ms
54,088 KB
testcase_03 AC 98 ms
52,476 KB
testcase_04 AC 111 ms
53,956 KB
testcase_05 AC 102 ms
52,768 KB
testcase_06 AC 113 ms
54,272 KB
testcase_07 AC 111 ms
53,992 KB
testcase_08 AC 113 ms
53,420 KB
testcase_09 AC 102 ms
52,928 KB
testcase_10 AC 111 ms
53,860 KB
testcase_11 AC 110 ms
54,152 KB
testcase_12 AC 103 ms
52,728 KB
testcase_13 AC 104 ms
52,948 KB
testcase_14 AC 118 ms
54,520 KB
testcase_15 AC 121 ms
54,212 KB
testcase_16 AC 110 ms
53,860 KB
testcase_17 AC 114 ms
54,016 KB
testcase_18 AC 119 ms
54,076 KB
testcase_19 AC 115 ms
54,128 KB
testcase_20 AC 108 ms
54,000 KB
testcase_21 AC 110 ms
54,144 KB
testcase_22 AC 101 ms
52,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if (n % 2 == 0) {
		    n++;
		}
		System.out.println(n);
	}
}
0