結果

問題 No.63 ポッキーゲーム
ユーザー scache
提出日時 2014-11-12 03:24:51
言語 Java
(openjdk 23)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 2,977 ms
コンパイル使用メモリ 74,248 KB
実行使用メモリ 41,332 KB
最終ジャッジ日時 2024-12-24 04:42:05
合計ジャッジ時間 7,028 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main63 {
	public static void main(String[] args) {
		Main63 p = new Main63();
	}

	public Main63(){
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int k = sc.nextInt();
		System.out.println((l-1)/(2*k)*k);
	}

}
0