結果

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

ソースコード

diff #

L, K = map(int, input().split(' '))

div = L // (K * 2)
if L % K == 0:
    if div - 1 > 0:
        print((div - 1) * K)
    else:
        print(0)
else:
    print(div * K)
0