結果

問題 No.63 ポッキーゲーム
ユーザー matsuyoshi30
提出日時 2016-02-04 13:28:04
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 1,999 ms
コンパイル使用メモリ 73,992 KB
実行使用メモリ 56,560 KB
最終ジャッジ日時 2024-09-21 20:30:31
合計ジャッジ時間 6,755 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Test {
	public static void main(String[] args) throws Exception {
		Scanner in = new Scanner(System.in);
		int l = in.nextInt();
		int k = in.nextInt();

		int temp = 0;
		for(int i=l; i>0; i--) {
			i -= k * 2;
			temp += k;
		}

		System.out.println(temp);
	}
}
0