結果

問題 No.192 合成数
ユーザー 8130Tsk8130Tsk
提出日時 2015-09-13 21:15:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 3,848 ms
コンパイル使用メモリ 71,616 KB
実行使用メモリ 57,824 KB
最終ジャッジ日時 2023-09-09 08:40:24
合計ジャッジ時間 8,925 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,440 KB
testcase_01 AC 126 ms
55,944 KB
testcase_02 AC 126 ms
55,476 KB
testcase_03 AC 126 ms
55,860 KB
testcase_04 AC 128 ms
55,736 KB
testcase_05 AC 124 ms
55,716 KB
testcase_06 AC 126 ms
56,064 KB
testcase_07 AC 125 ms
55,780 KB
testcase_08 AC 125 ms
55,684 KB
testcase_09 AC 127 ms
55,824 KB
testcase_10 AC 127 ms
55,464 KB
testcase_11 AC 127 ms
55,828 KB
testcase_12 AC 128 ms
56,032 KB
testcase_13 AC 127 ms
56,008 KB
testcase_14 AC 126 ms
56,088 KB
testcase_15 AC 127 ms
55,952 KB
testcase_16 AC 126 ms
55,820 KB
testcase_17 AC 126 ms
56,028 KB
testcase_18 AC 126 ms
55,740 KB
testcase_19 AC 127 ms
57,824 KB
testcase_20 AC 127 ms
55,876 KB
testcase_21 AC 128 ms
55,508 KB
testcase_22 AC 127 ms
55,724 KB
testcase_23 AC 126 ms
55,484 KB
testcase_24 AC 123 ms
56,064 KB
testcase_25 AC 123 ms
55,648 KB
testcase_26 AC 125 ms
55,444 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