結果

問題 No.192 合成数
ユーザー tentententen
提出日時 2020-10-06 08:51:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 71,248 KB
実行使用メモリ 56,492 KB
最終ジャッジ日時 2023-09-27 06:23:41
合計ジャッジ時間 6,993 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
55,700 KB
testcase_01 AC 115 ms
55,752 KB
testcase_02 AC 114 ms
56,036 KB
testcase_03 AC 117 ms
55,804 KB
testcase_04 AC 112 ms
55,744 KB
testcase_05 AC 115 ms
55,860 KB
testcase_06 AC 112 ms
53,772 KB
testcase_07 AC 115 ms
55,764 KB
testcase_08 AC 112 ms
56,492 KB
testcase_09 AC 111 ms
55,512 KB
testcase_10 AC 113 ms
55,632 KB
testcase_11 AC 114 ms
55,720 KB
testcase_12 AC 114 ms
55,996 KB
testcase_13 AC 114 ms
55,936 KB
testcase_14 AC 113 ms
55,928 KB
testcase_15 AC 116 ms
55,796 KB
testcase_16 AC 110 ms
55,608 KB
testcase_17 AC 112 ms
53,604 KB
testcase_18 AC 107 ms
55,840 KB
testcase_19 AC 111 ms
55,852 KB
testcase_20 AC 110 ms
55,856 KB
testcase_21 AC 117 ms
55,840 KB
testcase_22 AC 123 ms
55,508 KB
testcase_23 AC 110 ms
55,684 KB
testcase_24 AC 111 ms
55,720 KB
testcase_25 AC 113 ms
55,500 KB
testcase_26 AC 114 ms
55,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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