結果

問題 No.63 ポッキーゲーム
ユーザー pypypymipypypymi
提出日時 2022-01-27 12:58:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 82,216 KB
実行使用メモリ 54,096 KB
最終ジャッジ日時 2024-06-07 03:36:31
合計ジャッジ時間 1,981 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,152 KB
testcase_01 AC 38 ms
52,752 KB
testcase_02 AC 38 ms
52,684 KB
testcase_03 AC 39 ms
53,152 KB
testcase_04 AC 38 ms
51,420 KB
testcase_05 AC 38 ms
52,128 KB
testcase_06 WA -
testcase_07 AC 37 ms
52,756 KB
testcase_08 AC 38 ms
52,224 KB
testcase_09 AC 37 ms
52,840 KB
testcase_10 AC 37 ms
51,688 KB
testcase_11 AC 38 ms
52,024 KB
testcase_12 WA -
testcase_13 AC 37 ms
53,300 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 38 ms
52,960 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 38 ms
51,944 KB
testcase_21 AC 39 ms
51,688 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