結果

問題 No.192 合成数
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-17 01:08:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 3,325 ms
コンパイル使用メモリ 72,632 KB
実行使用メモリ 58,032 KB
最終ジャッジ日時 2023-09-09 09:14:53
合計ジャッジ時間 7,861 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,024 KB
testcase_01 AC 119 ms
56,204 KB
testcase_02 AC 117 ms
56,440 KB
testcase_03 AC 117 ms
55,504 KB
testcase_04 AC 122 ms
56,224 KB
testcase_05 AC 120 ms
55,868 KB
testcase_06 AC 119 ms
56,228 KB
testcase_07 AC 122 ms
56,088 KB
testcase_08 AC 123 ms
56,272 KB
testcase_09 AC 118 ms
56,312 KB
testcase_10 AC 124 ms
55,808 KB
testcase_11 AC 119 ms
56,000 KB
testcase_12 AC 121 ms
55,924 KB
testcase_13 AC 120 ms
55,800 KB
testcase_14 AC 120 ms
56,400 KB
testcase_15 AC 124 ms
55,680 KB
testcase_16 AC 122 ms
56,060 KB
testcase_17 AC 122 ms
56,200 KB
testcase_18 AC 122 ms
56,604 KB
testcase_19 AC 120 ms
55,852 KB
testcase_20 AC 122 ms
56,304 KB
testcase_21 AC 121 ms
56,456 KB
testcase_22 AC 122 ms
58,032 KB
testcase_23 AC 120 ms
56,040 KB
testcase_24 AC 120 ms
56,024 KB
testcase_25 AC 123 ms
56,068 KB
testcase_26 AC 120 ms
56,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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