結果

問題 No.63 ポッキーゲーム
ユーザー kkron4221kkron4221
提出日時 2019-01-20 10:41:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 8,084 KB
最終ジャッジ日時 2023-09-28 12:19:21
合計ジャッジ時間 1,541 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,952 KB
testcase_01 AC 16 ms
8,040 KB
testcase_02 AC 16 ms
7,916 KB
testcase_03 WA -
testcase_04 AC 16 ms
8,084 KB
testcase_05 AC 16 ms
7,948 KB
testcase_06 AC 16 ms
8,016 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,912 KB
testcase_09 AC 16 ms
7,992 KB
testcase_10 AC 17 ms
7,876 KB
testcase_11 AC 16 ms
7,952 KB
testcase_12 AC 16 ms
7,916 KB
testcase_13 AC 16 ms
7,912 KB
testcase_14 WA -
testcase_15 AC 16 ms
7,952 KB
testcase_16 AC 17 ms
7,872 KB
testcase_17 AC 16 ms
7,952 KB
testcase_18 AC 17 ms
7,912 KB
testcase_19 AC 16 ms
8,012 KB
testcase_20 AC 17 ms
7,912 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
L, K = map(int,(input().split()))
if L / K <= 2:
    ans = 0
else:
    if L % 2 == 0:
        ans = math.floor(L / K / 2 - 1) * K
    else:
        ans = math.floor(L / K / 2) * K
print(ans)
0