結果

問題 No.63 ポッキーゲーム
ユーザー fal_rndfal_rnd
提出日時 2017-04-03 18:56:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 1,903 ms
コンパイル使用メモリ 71,236 KB
実行使用メモリ 56,440 KB
最終ジャッジ日時 2023-08-25 19:24:39
合計ジャッジ時間 5,503 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,892 KB
testcase_01 AC 119 ms
56,068 KB
testcase_02 AC 119 ms
56,032 KB
testcase_03 AC 117 ms
56,400 KB
testcase_04 AC 117 ms
55,444 KB
testcase_05 AC 121 ms
56,400 KB
testcase_06 AC 119 ms
55,920 KB
testcase_07 AC 119 ms
55,868 KB
testcase_08 AC 115 ms
55,688 KB
testcase_09 AC 118 ms
55,684 KB
testcase_10 AC 119 ms
55,836 KB
testcase_11 AC 125 ms
56,008 KB
testcase_12 AC 119 ms
55,684 KB
testcase_13 AC 119 ms
56,192 KB
testcase_14 AC 120 ms
56,112 KB
testcase_15 AC 119 ms
56,204 KB
testcase_16 AC 120 ms
55,940 KB
testcase_17 AC 120 ms
56,440 KB
testcase_18 AC 120 ms
56,004 KB
testcase_19 AC 121 ms
56,060 KB
testcase_20 AC 120 ms
55,792 KB
testcase_21 AC 117 ms
55,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static final Scanner s=new Scanner(System.in);

	public static void main(String args[]){
		int n=s.nextInt(),k=s.nextInt();
		System.out.println((n-1)/(k*2)*k);
	}
}
0