結果

問題 No.63 ポッキーゲーム
ユーザー kano_townkano_town
提出日時 2014-11-19 09:48:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 3,271 ms
コンパイル使用メモリ 72,436 KB
実行使用メモリ 56,156 KB
最終ジャッジ日時 2023-08-25 18:46:34
合計ジャッジ時間 6,817 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,864 KB
testcase_01 AC 121 ms
55,652 KB
testcase_02 AC 122 ms
55,988 KB
testcase_03 AC 123 ms
55,892 KB
testcase_04 AC 122 ms
56,156 KB
testcase_05 AC 120 ms
55,644 KB
testcase_06 AC 121 ms
55,620 KB
testcase_07 AC 121 ms
56,136 KB
testcase_08 AC 120 ms
55,616 KB
testcase_09 AC 122 ms
55,916 KB
testcase_10 AC 120 ms
55,424 KB
testcase_11 AC 119 ms
55,504 KB
testcase_12 AC 119 ms
55,536 KB
testcase_13 AC 120 ms
55,824 KB
testcase_14 AC 122 ms
53,908 KB
testcase_15 AC 119 ms
55,796 KB
testcase_16 AC 122 ms
55,956 KB
testcase_17 AC 121 ms
56,112 KB
testcase_18 AC 121 ms
55,772 KB
testcase_19 AC 121 ms
55,536 KB
testcase_20 AC 121 ms
55,540 KB
testcase_21 AC 121 ms
55,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder63 {

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

		System.out.println((int)(K * (Math.ceil(L / (2.0 * K)) - 1)));
	}

}
0