結果

問題 No.63 ポッキーゲーム
ユーザー k_kadorak_kadora
提出日時 2015-05-22 02:10:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 3,061 ms
コンパイル使用メモリ 71,016 KB
実行使用メモリ 56,264 KB
最終ジャッジ日時 2023-08-25 18:52:29
合計ジャッジ時間 6,860 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,732 KB
testcase_01 AC 124 ms
56,008 KB
testcase_02 AC 124 ms
55,676 KB
testcase_03 AC 123 ms
56,184 KB
testcase_04 AC 122 ms
55,632 KB
testcase_05 AC 122 ms
55,800 KB
testcase_06 AC 123 ms
56,264 KB
testcase_07 AC 121 ms
55,564 KB
testcase_08 AC 124 ms
55,876 KB
testcase_09 AC 123 ms
56,080 KB
testcase_10 AC 122 ms
55,972 KB
testcase_11 AC 124 ms
55,944 KB
testcase_12 AC 123 ms
55,676 KB
testcase_13 AC 123 ms
53,716 KB
testcase_14 AC 126 ms
55,940 KB
testcase_15 AC 124 ms
56,016 KB
testcase_16 AC 123 ms
53,884 KB
testcase_17 AC 122 ms
55,600 KB
testcase_18 AC 124 ms
55,728 KB
testcase_19 AC 119 ms
56,140 KB
testcase_20 AC 120 ms
55,992 KB
testcase_21 AC 123 ms
55,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Pokky{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		int l,k,temp,res;
		l = sc.nextInt();
		k = sc.nextInt();
		temp = (l-1)/(2*k);
		res = temp * k;
		System.out.println(res);
	}
}
0