結果

問題 No.192 合成数
ユーザー dazydazy
提出日時 2017-02-23 15:13:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 3,210 ms
コンパイル使用メモリ 72,160 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-09-09 09:04:07
合計ジャッジ時間 8,432 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,000 KB
testcase_01 AC 125 ms
55,968 KB
testcase_02 AC 129 ms
55,728 KB
testcase_03 AC 127 ms
55,788 KB
testcase_04 AC 126 ms
55,788 KB
testcase_05 AC 126 ms
55,524 KB
testcase_06 AC 130 ms
55,816 KB
testcase_07 AC 126 ms
55,972 KB
testcase_08 AC 129 ms
55,816 KB
testcase_09 AC 126 ms
55,496 KB
testcase_10 AC 124 ms
55,648 KB
testcase_11 AC 128 ms
55,456 KB
testcase_12 AC 128 ms
55,940 KB
testcase_13 AC 126 ms
55,736 KB
testcase_14 AC 125 ms
56,060 KB
testcase_15 AC 129 ms
55,996 KB
testcase_16 AC 126 ms
55,916 KB
testcase_17 AC 126 ms
55,512 KB
testcase_18 AC 126 ms
55,748 KB
testcase_19 AC 127 ms
56,116 KB
testcase_20 AC 124 ms
55,804 KB
testcase_21 AC 125 ms
55,816 KB
testcase_22 AC 126 ms
56,212 KB
testcase_23 AC 125 ms
56,112 KB
testcase_24 AC 127 ms
55,760 KB
testcase_25 AC 124 ms
55,752 KB
testcase_26 AC 126 ms
56,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int ans = N;
        if (N%2==1) ans++;

        System.out.println(ans);
    }
}

0