結果

問題 No.63 ポッキーゲーム
ユーザー 8130Tsk8130Tsk
提出日時 2015-07-26 22:59:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 2,898 ms
コンパイル使用メモリ 71,064 KB
実行使用メモリ 56,372 KB
最終ジャッジ日時 2023-08-25 18:54:39
合計ジャッジ時間 6,410 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
56,000 KB
testcase_01 AC 121 ms
55,784 KB
testcase_02 AC 115 ms
56,268 KB
testcase_03 AC 116 ms
56,068 KB
testcase_04 AC 109 ms
56,132 KB
testcase_05 AC 114 ms
55,740 KB
testcase_06 AC 114 ms
55,752 KB
testcase_07 AC 116 ms
55,948 KB
testcase_08 AC 113 ms
55,788 KB
testcase_09 AC 116 ms
55,984 KB
testcase_10 AC 108 ms
55,512 KB
testcase_11 AC 110 ms
55,956 KB
testcase_12 AC 106 ms
55,692 KB
testcase_13 AC 113 ms
54,456 KB
testcase_14 AC 116 ms
55,980 KB
testcase_15 AC 116 ms
55,944 KB
testcase_16 AC 116 ms
55,748 KB
testcase_17 AC 117 ms
55,768 KB
testcase_18 AC 115 ms
56,372 KB
testcase_19 AC 110 ms
55,948 KB
testcase_20 AC 109 ms
55,884 KB
testcase_21 AC 117 ms
55,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No63 {

	public void run(){
		Scanner sc = new Scanner(System.in);
		int L = sc.nextInt();
		int K = sc.nextInt();

		System.out.println((L-1)/(2*K)*K);
		
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new No63().run();
	}

}
0