結果

問題 No.192 合成数
ユーザー spaciaspacia
提出日時 2015-12-15 23:36:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 2,748 ms
コンパイル使用メモリ 72,140 KB
実行使用メモリ 49,652 KB
最終ジャッジ日時 2023-09-09 08:45:23
合計ジャッジ時間 4,543 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
49,160 KB
testcase_01 AC 39 ms
49,652 KB
testcase_02 AC 39 ms
49,316 KB
testcase_03 AC 39 ms
49,208 KB
testcase_04 AC 39 ms
49,376 KB
testcase_05 AC 38 ms
49,284 KB
testcase_06 AC 39 ms
49,264 KB
testcase_07 AC 39 ms
49,352 KB
testcase_08 AC 38 ms
49,224 KB
testcase_09 AC 38 ms
49,244 KB
testcase_10 AC 39 ms
49,284 KB
testcase_11 AC 39 ms
49,140 KB
testcase_12 AC 38 ms
49,272 KB
testcase_13 AC 38 ms
49,036 KB
testcase_14 AC 38 ms
49,308 KB
testcase_15 AC 40 ms
49,112 KB
testcase_16 AC 40 ms
49,244 KB
testcase_17 AC 38 ms
49,124 KB
testcase_18 AC 39 ms
49,096 KB
testcase_19 AC 40 ms
49,400 KB
testcase_20 AC 39 ms
49,180 KB
testcase_21 AC 39 ms
49,152 KB
testcase_22 AC 38 ms
49,344 KB
testcase_23 AC 38 ms
49,508 KB
testcase_24 AC 40 ms
49,352 KB
testcase_25 AC 38 ms
49,180 KB
testcase_26 AC 38 ms
49,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.math.*;

class Main192 {
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		System.out.println(n % 2 == 0 ? n : n + 1);
		
	}
}
0