結果

問題 No.63 ポッキーゲーム
ユーザー juger_jvjuger_jv
提出日時 2016-05-03 20:35:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 333 ms / 5,000 ms
コード長 387 bytes
コンパイル時間 2,368 ms
コンパイル使用メモリ 71,788 KB
実行使用メモリ 49,908 KB
最終ジャッジ日時 2023-08-25 19:09:38
合計ジャッジ時間 4,871 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,368 KB
testcase_01 AC 42 ms
49,148 KB
testcase_02 AC 43 ms
49,348 KB
testcase_03 AC 43 ms
49,360 KB
testcase_04 AC 42 ms
49,120 KB
testcase_05 AC 43 ms
49,344 KB
testcase_06 AC 42 ms
49,424 KB
testcase_07 AC 44 ms
49,140 KB
testcase_08 AC 42 ms
49,276 KB
testcase_09 AC 51 ms
49,364 KB
testcase_10 AC 55 ms
49,744 KB
testcase_11 AC 333 ms
49,780 KB
testcase_12 AC 58 ms
49,768 KB
testcase_13 AC 328 ms
49,864 KB
testcase_14 AC 57 ms
47,888 KB
testcase_15 AC 57 ms
49,844 KB
testcase_16 AC 52 ms
49,656 KB
testcase_17 AC 312 ms
49,784 KB
testcase_18 AC 52 ms
49,668 KB
testcase_19 AC 90 ms
49,824 KB
testcase_20 AC 56 ms
49,908 KB
testcase_21 AC 64 ms
49,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
class no63
{
    public static void main(String args[])throws IOException
    {
	BufferedReader sc=new BufferedReader(new InputStreamReader(System.in));
	String lk[]=sc.readLine().split(" ");
	int l,k,ans=0;
	l=Integer.parseInt(lk[0]);
	k=Integer.parseInt(lk[1]);
        while(l>0)
	    {
		l-=2*k;
		if(l<=0)break;
		ans++;
	    }
	System.out.println(ans*k);
    }
}
0