結果

問題 No.63 ポッキーゲーム
ユーザー kkron4221
提出日時 2019-01-20 10:41:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-21 06:57:23
合計ジャッジ時間 1,763 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 WA * 4
権限があれば一括ダウンロードができます

ソースコード

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