結果

問題 No.63 ポッキーゲーム
ユーザー jin128jin128
提出日時 2016-08-25 21:10:52
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 2,055 ms
コンパイル使用メモリ 74,584 KB
実行使用メモリ 54,476 KB
最終ジャッジ日時 2024-04-25 15:22:05
合計ジャッジ時間 5,710 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
54,032 KB
testcase_01 AC 131 ms
54,104 KB
testcase_02 AC 131 ms
54,124 KB
testcase_03 AC 132 ms
54,168 KB
testcase_04 AC 131 ms
54,036 KB
testcase_05 AC 130 ms
54,144 KB
testcase_06 AC 132 ms
54,124 KB
testcase_07 AC 130 ms
54,112 KB
testcase_08 AC 133 ms
54,476 KB
testcase_09 AC 132 ms
54,244 KB
testcase_10 AC 127 ms
53,908 KB
testcase_11 AC 133 ms
53,992 KB
testcase_12 AC 132 ms
54,000 KB
testcase_13 WA -
testcase_14 AC 126 ms
54,192 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 134 ms
54,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class S16_pochygame{
  public static void main(String[] args){
    int l, k, t;
    Scanner scn = new Scanner(System.in);

    l = scn.nextInt();
    k = scn.nextInt();

    t = l / (2 * k);
    if(l == (2 * k ))
      t--;

    System.out.println(k * t);
  }
}
0