結果

問題 No.63 ポッキーゲーム
ユーザー yu_017yu_017
提出日時 2019-01-17 00:45:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 513 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 3,353 ms
コンパイル使用メモリ 72,308 KB
実行使用メモリ 55,992 KB
最終ジャッジ日時 2023-09-13 22:22:17
合計ジャッジ時間 8,527 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,956 KB
testcase_01 AC 126 ms
55,724 KB
testcase_02 AC 126 ms
55,808 KB
testcase_03 AC 126 ms
55,804 KB
testcase_04 AC 126 ms
55,628 KB
testcase_05 AC 128 ms
55,688 KB
testcase_06 AC 129 ms
55,992 KB
testcase_07 AC 129 ms
55,776 KB
testcase_08 AC 125 ms
55,584 KB
testcase_09 AC 130 ms
55,784 KB
testcase_10 AC 134 ms
55,708 KB
testcase_11 AC 506 ms
55,644 KB
testcase_12 AC 137 ms
55,588 KB
testcase_13 AC 513 ms
55,740 KB
testcase_14 AC 137 ms
55,636 KB
testcase_15 AC 135 ms
55,728 KB
testcase_16 AC 130 ms
55,848 KB
testcase_17 AC 480 ms
53,960 KB
testcase_18 AC 130 ms
55,600 KB
testcase_19 AC 178 ms
55,584 KB
testcase_20 AC 131 ms
55,736 KB
testcase_21 AC 144 ms
55,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class A000063 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int l = s.nextInt();
		int k = s.nextInt();
		s.close();
		int a = 1;
		while(l-2*k*a>0) {
			a++;
		}
		System.out.println(k*(a-1));
	}

}
0