結果

問題 No.63 ポッキーゲーム
ユーザー scillicettscillicett
提出日時 2019-08-29 04:18:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 9,272 KB
最終ジャッジ日時 2023-08-11 03:55:00
合計ジャッジ時間 1,717 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
9,056 KB
testcase_01 AC 21 ms
9,084 KB
testcase_02 AC 21 ms
9,076 KB
testcase_03 WA -
testcase_04 AC 21 ms
8,948 KB
testcase_05 AC 19 ms
9,208 KB
testcase_06 AC 20 ms
9,104 KB
testcase_07 WA -
testcase_08 AC 20 ms
9,172 KB
testcase_09 AC 19 ms
9,228 KB
testcase_10 AC 20 ms
9,068 KB
testcase_11 AC 20 ms
9,052 KB
testcase_12 AC 22 ms
9,068 KB
testcase_13 AC 20 ms
9,072 KB
testcase_14 WA -
testcase_15 AC 20 ms
9,072 KB
testcase_16 AC 20 ms
9,240 KB
testcase_17 AC 20 ms
9,076 KB
testcase_18 AC 20 ms
9,092 KB
testcase_19 AC 21 ms
9,236 KB
testcase_20 AC 20 ms
9,236 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
from decimal import *
l,k = map(int,input().split())

if l/k <= 2:
    print(0)
else:
    if l % 2*k != 0:
        print(math.floor(Decimal(l/(k*2)))*k)
    else:
        print(math.floor(Decimal(l/(k*2)))*k-k)
0