結果

問題 No.63 ポッキーゲーム
ユーザー IHIH
提出日時 2021-01-08 19:39:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,059 ms / 5,000 ms
コード長 124 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 75,744 KB
最終ジャッジ日時 2023-08-10 03:13:45
合計ジャッジ時間 6,200 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,328 KB
testcase_01 AC 70 ms
71,136 KB
testcase_02 AC 70 ms
71,376 KB
testcase_03 AC 70 ms
71,296 KB
testcase_04 AC 71 ms
71,536 KB
testcase_05 AC 69 ms
71,312 KB
testcase_06 AC 69 ms
71,436 KB
testcase_07 AC 73 ms
75,564 KB
testcase_08 AC 73 ms
75,700 KB
testcase_09 AC 73 ms
75,652 KB
testcase_10 AC 81 ms
75,556 KB
testcase_11 AC 1,059 ms
75,616 KB
testcase_12 AC 93 ms
75,620 KB
testcase_13 AC 1,059 ms
75,732 KB
testcase_14 AC 91 ms
75,660 KB
testcase_15 AC 91 ms
75,660 KB
testcase_16 AC 74 ms
75,644 KB
testcase_17 AC 993 ms
75,732 KB
testcase_18 AC 72 ms
75,660 KB
testcase_19 AC 205 ms
75,724 KB
testcase_20 AC 88 ms
75,744 KB
testcase_21 AC 114 ms
75,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l,k = map(int,input().split())

ans = 0
while True:
  if l <= k*2:
    break
  else:
    l -= (k*2)
    ans += k
print(ans)
0