結果

問題 No.63 ポッキーゲーム
ユーザー scachescache
提出日時 2014-11-12 03:24:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 2,978 ms
コンパイル使用メモリ 72,468 KB
実行使用メモリ 56,292 KB
最終ジャッジ日時 2023-08-25 18:45:17
合計ジャッジ時間 6,751 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,756 KB
testcase_01 AC 122 ms
55,956 KB
testcase_02 AC 121 ms
55,712 KB
testcase_03 AC 122 ms
55,788 KB
testcase_04 AC 118 ms
56,208 KB
testcase_05 AC 126 ms
55,344 KB
testcase_06 AC 123 ms
55,908 KB
testcase_07 AC 118 ms
55,476 KB
testcase_08 AC 120 ms
55,904 KB
testcase_09 AC 120 ms
55,920 KB
testcase_10 AC 117 ms
56,036 KB
testcase_11 AC 117 ms
56,112 KB
testcase_12 AC 125 ms
55,748 KB
testcase_13 AC 123 ms
55,708 KB
testcase_14 AC 117 ms
56,244 KB
testcase_15 AC 118 ms
55,744 KB
testcase_16 AC 112 ms
55,860 KB
testcase_17 AC 120 ms
55,920 KB
testcase_18 AC 118 ms
53,920 KB
testcase_19 AC 122 ms
55,640 KB
testcase_20 AC 118 ms
55,980 KB
testcase_21 AC 119 ms
56,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main63 {
	public static void main(String[] args) {
		Main63 p = new Main63();
	}

	public Main63(){
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int k = sc.nextInt();
		System.out.println((l-1)/(2*k)*k);
	}

}
0