結果

問題 No.63 ポッキーゲーム
ユーザー dazydazy
提出日時 2016-09-03 18:01:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 321 bytes
コンパイル時間 3,193 ms
コンパイル使用メモリ 73,812 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-08-25 19:15:53
合計ジャッジ時間 6,699 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,476 KB
testcase_01 AC 118 ms
56,108 KB
testcase_02 AC 118 ms
55,684 KB
testcase_03 AC 119 ms
55,912 KB
testcase_04 AC 119 ms
56,068 KB
testcase_05 AC 120 ms
55,648 KB
testcase_06 AC 119 ms
56,516 KB
testcase_07 AC 119 ms
55,960 KB
testcase_08 AC 118 ms
56,004 KB
testcase_09 AC 118 ms
56,088 KB
testcase_10 AC 119 ms
56,004 KB
testcase_11 AC 121 ms
55,780 KB
testcase_12 AC 122 ms
56,168 KB
testcase_13 AC 122 ms
55,392 KB
testcase_14 AC 119 ms
55,904 KB
testcase_15 AC 122 ms
55,752 KB
testcase_16 AC 119 ms
55,320 KB
testcase_17 AC 121 ms
56,024 KB
testcase_18 AC 120 ms
55,772 KB
testcase_19 AC 122 ms
55,856 KB
testcase_20 AC 120 ms
55,896 KB
testcase_21 AC 119 ms
55,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        int L = scan.nextInt();
        int K = scan.nextInt();
        if (L < 1||L > 1000000000||K < 1||K > 50) System.exit(1);

        System.out.println((L-1)/(2*K) * K);
    }
}
0