結果

問題 No.63 ポッキーゲーム
ユーザー papipen
提出日時 2017-03-26 16:18:29
言語 Java
(openjdk 23)
結果
AC  
実行時間 479 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 1,919 ms
コンパイル使用メモリ 73,760 KB
実行使用メモリ 41,320 KB
最終ジャッジ日時 2024-12-24 05:25:57
合計ジャッジ時間 6,619 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class pokkii{
	public static void main(String args[]){
		Scanner s = new Scanner(System.in);
		int L = s.nextInt();
		int K = s.nextInt();
		int i = 0;
		int sum = 0;
		while(K * 2 * i < L){
			i++;
			sum += K * 2;
		}
			System.out.println(K * (i - 1));
	}
}
0