結果

問題 No.63 ポッキーゲーム
ユーザー ryosuke0825ryosuke0825
提出日時 2018-04-08 14:59:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 3,099 ms
コンパイル使用メモリ 73,008 KB
実行使用メモリ 58,792 KB
最終ジャッジ日時 2023-09-09 03:09:37
合計ジャッジ時間 7,039 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,096 KB
testcase_01 AC 121 ms
56,152 KB
testcase_02 WA -
testcase_03 AC 121 ms
55,780 KB
testcase_04 AC 121 ms
56,184 KB
testcase_05 AC 119 ms
56,028 KB
testcase_06 AC 123 ms
56,392 KB
testcase_07 AC 120 ms
55,504 KB
testcase_08 AC 121 ms
56,028 KB
testcase_09 AC 122 ms
55,924 KB
testcase_10 AC 121 ms
56,064 KB
testcase_11 AC 122 ms
56,028 KB
testcase_12 AC 120 ms
55,920 KB
testcase_13 WA -
testcase_14 AC 121 ms
56,124 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 118 ms
55,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No63 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int L = sc.nextInt();
		int K = sc.nextInt();

		if(L/2<=K) {
			System.out.println(0);
		}else {
			System.out.println(L/K/2*K);
		}
	}

}
0