結果

問題 No.63 ポッキーゲーム
ユーザー pypypymipypypymi
提出日時 2022-01-27 12:58:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 1,186 ms
コンパイル使用メモリ 86,476 KB
実行使用メモリ 71,476 KB
最終ジャッジ日時 2023-08-26 08:21:54
合計ジャッジ時間 2,808 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,476 KB
testcase_01 AC 66 ms
71,368 KB
testcase_02 AC 65 ms
71,432 KB
testcase_03 AC 64 ms
71,356 KB
testcase_04 AC 65 ms
71,216 KB
testcase_05 AC 68 ms
70,908 KB
testcase_06 WA -
testcase_07 AC 63 ms
70,900 KB
testcase_08 AC 63 ms
71,268 KB
testcase_09 AC 63 ms
71,336 KB
testcase_10 AC 63 ms
71,112 KB
testcase_11 AC 65 ms
71,296 KB
testcase_12 WA -
testcase_13 AC 63 ms
71,224 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 66 ms
71,380 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 66 ms
71,196 KB
testcase_21 AC 65 ms
71,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l,k = map(int,input().split())
if (k*2>=l):
    print(0)
else:
    if l%k==0:
        print((((l//k)-1)*k)//2)
    else:
        print(((l//k)*k)//2)
0