結果

問題 No.192 合成数
ユーザー htensaihtensai
提出日時 2019-12-10 14:26:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 2,150 ms
コンパイル使用メモリ 73,796 KB
実行使用メモリ 56,044 KB
最終ジャッジ日時 2023-09-06 07:08:51
合計ジャッジ時間 7,346 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,772 KB
testcase_01 AC 125 ms
55,776 KB
testcase_02 AC 124 ms
55,812 KB
testcase_03 AC 131 ms
56,044 KB
testcase_04 AC 127 ms
55,864 KB
testcase_05 AC 128 ms
55,944 KB
testcase_06 AC 129 ms
55,944 KB
testcase_07 AC 126 ms
55,840 KB
testcase_08 AC 128 ms
55,908 KB
testcase_09 AC 126 ms
55,820 KB
testcase_10 AC 124 ms
55,944 KB
testcase_11 AC 124 ms
53,964 KB
testcase_12 AC 122 ms
55,944 KB
testcase_13 AC 127 ms
55,972 KB
testcase_14 AC 126 ms
55,764 KB
testcase_15 AC 128 ms
55,768 KB
testcase_16 AC 126 ms
55,816 KB
testcase_17 AC 125 ms
55,496 KB
testcase_18 AC 123 ms
55,684 KB
testcase_19 AC 126 ms
55,956 KB
testcase_20 AC 128 ms
55,800 KB
testcase_21 AC 122 ms
55,800 KB
testcase_22 AC 123 ms
55,816 KB
testcase_23 AC 123 ms
55,768 KB
testcase_24 AC 125 ms
55,528 KB
testcase_25 AC 132 ms
55,964 KB
testcase_26 AC 127 ms
55,872 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 == 1) {
            n++;
        }
        System.out.println(n);
  }
}
0