結果

問題 No.192 合成数
ユーザー atkrymatkrym
提出日時 2016-10-23 21:03:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 2,092 ms
コンパイル使用メモリ 71,528 KB
実行使用メモリ 56,848 KB
最終ジャッジ日時 2023-09-09 08:59:31
合計ジャッジ時間 7,008 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,816 KB
testcase_01 AC 124 ms
55,684 KB
testcase_02 AC 124 ms
56,064 KB
testcase_03 AC 124 ms
56,052 KB
testcase_04 AC 122 ms
55,920 KB
testcase_05 AC 123 ms
56,204 KB
testcase_06 AC 122 ms
56,180 KB
testcase_07 AC 123 ms
55,876 KB
testcase_08 AC 123 ms
55,908 KB
testcase_09 AC 121 ms
55,452 KB
testcase_10 AC 124 ms
56,144 KB
testcase_11 AC 123 ms
55,752 KB
testcase_12 AC 123 ms
55,908 KB
testcase_13 AC 123 ms
55,872 KB
testcase_14 AC 122 ms
56,020 KB
testcase_15 AC 123 ms
56,848 KB
testcase_16 AC 123 ms
56,028 KB
testcase_17 AC 122 ms
55,668 KB
testcase_18 AC 122 ms
55,948 KB
testcase_19 AC 122 ms
55,604 KB
testcase_20 AC 124 ms
55,852 KB
testcase_21 AC 123 ms
56,764 KB
testcase_22 AC 123 ms
56,000 KB
testcase_23 AC 125 ms
56,024 KB
testcase_24 AC 124 ms
55,772 KB
testcase_25 AC 124 ms
56,292 KB
testcase_26 AC 121 ms
55,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
import java.text.*;

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