結果

問題 No.63 ポッキーゲーム
ユーザー YOSHIYOSHI
提出日時 2021-02-26 00:00:07
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 480 bytes
コンパイル時間 3,513 ms
コンパイル使用メモリ 80,128 KB
実行使用メモリ 51,212 KB
最終ジャッジ日時 2024-04-09 03:06:58
合計ジャッジ時間 5,785 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
50,792 KB
testcase_01 AC 64 ms
51,212 KB
testcase_02 AC 61 ms
51,056 KB
testcase_03 AC 61 ms
50,632 KB
testcase_04 AC 62 ms
50,892 KB
testcase_05 AC 61 ms
50,860 KB
testcase_06 AC 60 ms
50,976 KB
testcase_07 AC 60 ms
50,836 KB
testcase_08 AC 61 ms
50,936 KB
testcase_09 AC 61 ms
50,920 KB
testcase_10 AC 60 ms
50,940 KB
testcase_11 AC 60 ms
50,764 KB
testcase_12 AC 60 ms
50,380 KB
testcase_13 WA -
testcase_14 AC 61 ms
50,936 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 62 ms
50,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.stream.Stream;

public class No00000063_Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int[] arr = Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
		System.out.println(arr[0] <= 2 * arr[1] ? 0 : (arr[0] / arr[1] / 2) * arr[1]);

	}

}
0