結果

問題 No.63 ポッキーゲーム
ユーザー SuunnSuunn
提出日時 2018-11-20 05:43:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 262 bytes
コンパイル時間 1,830 ms
コンパイル使用メモリ 71,472 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-08-26 02:11:30
合計ジャッジ時間 5,695 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,868 KB
testcase_01 AC 120 ms
56,516 KB
testcase_02 AC 119 ms
55,888 KB
testcase_03 AC 119 ms
55,776 KB
testcase_04 AC 120 ms
56,176 KB
testcase_05 AC 120 ms
56,196 KB
testcase_06 AC 121 ms
56,036 KB
testcase_07 AC 121 ms
55,692 KB
testcase_08 AC 121 ms
55,804 KB
testcase_09 AC 121 ms
55,972 KB
testcase_10 AC 116 ms
56,020 KB
testcase_11 AC 125 ms
55,900 KB
testcase_12 AC 125 ms
55,680 KB
testcase_13 AC 121 ms
56,024 KB
testcase_14 AC 122 ms
55,944 KB
testcase_15 AC 119 ms
56,116 KB
testcase_16 AC 118 ms
56,292 KB
testcase_17 AC 119 ms
56,360 KB
testcase_18 AC 119 ms
55,820 KB
testcase_19 AC 119 ms
55,740 KB
testcase_20 AC 122 ms
56,240 KB
testcase_21 AC 123 ms
55,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
	

public class Main{
	
	
	public static void main(String args[])throws Exception{
		
		Scanner sc = new Scanner(System.in);
		int L = sc.nextInt();
		int K = sc.nextInt();
		int time = (L-1)/(2*K);
		System.out.println(time * K);
	}
}
0