結果

問題 No.63 ポッキーゲーム
ユーザー キョウチクキョウチク
提出日時 2022-06-10 14:56:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 396 bytes
コンパイル時間 2,074 ms
コンパイル使用メモリ 74,224 KB
実行使用メモリ 57,528 KB
最終ジャッジ日時 2023-10-21 04:40:37
合計ジャッジ時間 6,556 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,500 KB
testcase_01 AC 132 ms
57,432 KB
testcase_02 AC 132 ms
57,416 KB
testcase_03 AC 131 ms
57,420 KB
testcase_04 AC 132 ms
57,408 KB
testcase_05 AC 131 ms
57,436 KB
testcase_06 AC 131 ms
57,360 KB
testcase_07 AC 132 ms
57,384 KB
testcase_08 AC 129 ms
57,396 KB
testcase_09 AC 130 ms
57,444 KB
testcase_10 AC 131 ms
57,444 KB
testcase_11 AC 130 ms
57,528 KB
testcase_12 AC 130 ms
57,428 KB
testcase_13 AC 131 ms
57,380 KB
testcase_14 AC 130 ms
57,384 KB
testcase_15 AC 129 ms
57,336 KB
testcase_16 AC 131 ms
57,404 KB
testcase_17 AC 131 ms
57,412 KB
testcase_18 AC 131 ms
57,440 KB
testcase_19 AC 132 ms
57,436 KB
testcase_20 AC 132 ms
57,372 KB
testcase_21 AC 133 ms
57,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        String[] line;
        line=sc.nextLine().split(" ");
        int tmp=Integer.parseInt(line[0]);
        int tmp1=Integer.parseInt(line[1]);
        tmp=(tmp-1)/2/tmp1*tmp1;
        System.out.println(tmp);
    }
}
0