結果

問題 No.63 ポッキーゲーム
ユーザー rf141rf141
提出日時 2015-08-06 20:43:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 275 bytes
コンパイル時間 4,232 ms
コンパイル使用メモリ 72,792 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-08-25 18:55:53
合計ジャッジ時間 6,977 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,044 KB
testcase_01 AC 123 ms
55,920 KB
testcase_02 AC 119 ms
55,864 KB
testcase_03 AC 121 ms
55,788 KB
testcase_04 AC 119 ms
55,376 KB
testcase_05 AC 119 ms
55,980 KB
testcase_06 AC 119 ms
56,004 KB
testcase_07 AC 119 ms
55,872 KB
testcase_08 AC 120 ms
55,744 KB
testcase_09 AC 121 ms
56,216 KB
testcase_10 AC 118 ms
55,832 KB
testcase_11 AC 118 ms
55,828 KB
testcase_12 AC 122 ms
55,632 KB
testcase_13 AC 124 ms
55,604 KB
testcase_14 AC 125 ms
55,632 KB
testcase_15 AC 122 ms
55,624 KB
testcase_16 AC 122 ms
56,016 KB
testcase_17 AC 122 ms
55,772 KB
testcase_18 AC 121 ms
55,540 KB
testcase_19 AC 122 ms
56,012 KB
testcase_20 AC 124 ms
56,000 KB
testcase_21 AC 123 ms
55,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class pocky{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int L = scan.nextInt();
		int K = scan.nextInt();
		System.out.println(eat(L,K));
	}
	public static int eat(int l,int k){
		return (l-1)/(k*2)*k; 
	}
}
0