結果

問題 No.63 ポッキーゲーム
ユーザー uafr_csuafr_cs
提出日時 2015-05-15 02:22:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 305 bytes
コンパイル時間 2,011 ms
コンパイル使用メモリ 71,572 KB
実行使用メモリ 57,524 KB
最終ジャッジ日時 2023-08-25 18:52:08
合計ジャッジ時間 5,811 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
55,656 KB
testcase_01 AC 110 ms
55,932 KB
testcase_02 AC 112 ms
55,848 KB
testcase_03 AC 121 ms
55,456 KB
testcase_04 AC 110 ms
55,784 KB
testcase_05 AC 112 ms
55,976 KB
testcase_06 AC 112 ms
56,232 KB
testcase_07 AC 110 ms
55,984 KB
testcase_08 AC 109 ms
55,872 KB
testcase_09 AC 114 ms
56,152 KB
testcase_10 AC 114 ms
56,084 KB
testcase_11 AC 112 ms
56,064 KB
testcase_12 AC 110 ms
56,212 KB
testcase_13 AC 111 ms
55,940 KB
testcase_14 AC 105 ms
56,104 KB
testcase_15 AC 106 ms
55,816 KB
testcase_16 AC 110 ms
56,108 KB
testcase_17 AC 114 ms
55,820 KB
testcase_18 AC 110 ms
56,028 KB
testcase_19 AC 110 ms
55,456 KB
testcase_20 AC 113 ms
57,524 KB
testcase_21 AC 118 ms
55,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;

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