結果

問題 No.63 ポッキーゲーム
ユーザー tomosutotomosuto
提出日時 2016-10-22 16:49:44
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-05-02 22:09:38
合計ジャッジ時間 976 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 10 ms
6,272 KB
testcase_02 WA -
testcase_03 AC 10 ms
6,400 KB
testcase_04 AC 9 ms
6,144 KB
testcase_05 AC 9 ms
6,272 KB
testcase_06 AC 9 ms
6,400 KB
testcase_07 AC 9 ms
6,272 KB
testcase_08 AC 9 ms
6,272 KB
testcase_09 WA -
testcase_10 AC 9 ms
6,272 KB
testcase_11 WA -
testcase_12 AC 12 ms
6,400 KB
testcase_13 AC 10 ms
6,272 KB
testcase_14 AC 10 ms
6,272 KB
testcase_15 AC 10 ms
6,144 KB
testcase_16 AC 10 ms
6,272 KB
testcase_17 AC 10 ms
6,272 KB
testcase_18 AC 9 ms
6,272 KB
testcase_19 AC 9 ms
6,272 KB
testcase_20 AC 9 ms
6,272 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

L, K = map(int, raw_input().split())
if L%K == 0:
    if (L/K) % 2 == 0:
        print ((L/K) / 2-1) * K
    else:
        (L/2) - K
else:
    print (L/2) - (L/2) % K
0