結果

問題 No.192 合成数
ユーザー YatsukuYatsuku
提出日時 2015-12-13 17:24:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 1,905 ms
コンパイル使用メモリ 70,944 KB
実行使用メモリ 56,556 KB
最終ジャッジ日時 2023-09-09 08:44:55
合計ジャッジ時間 6,859 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,860 KB
testcase_01 AC 122 ms
56,124 KB
testcase_02 AC 121 ms
56,004 KB
testcase_03 AC 121 ms
56,112 KB
testcase_04 AC 120 ms
55,996 KB
testcase_05 AC 122 ms
56,556 KB
testcase_06 AC 120 ms
55,820 KB
testcase_07 AC 121 ms
56,172 KB
testcase_08 AC 120 ms
55,840 KB
testcase_09 AC 121 ms
55,408 KB
testcase_10 AC 122 ms
55,496 KB
testcase_11 AC 122 ms
55,672 KB
testcase_12 AC 124 ms
56,052 KB
testcase_13 AC 123 ms
56,064 KB
testcase_14 AC 124 ms
55,816 KB
testcase_15 AC 125 ms
56,120 KB
testcase_16 AC 126 ms
56,080 KB
testcase_17 AC 125 ms
55,732 KB
testcase_18 AC 122 ms
56,076 KB
testcase_19 AC 122 ms
55,548 KB
testcase_20 AC 122 ms
56,056 KB
testcase_21 AC 122 ms
56,296 KB
testcase_22 AC 122 ms
55,928 KB
testcase_23 AC 123 ms
55,732 KB
testcase_24 AC 122 ms
55,808 KB
testcase_25 AC 123 ms
56,112 KB
testcase_26 AC 122 ms
55,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


class No_192 {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);	
		int num = stdIn.nextInt();
		if (4 <= num) {
			if (num % 2 == 0) {
				System.out.println(num);
			} else {
				System.out.println(num-1);
			}
		}
	}
}
0