結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
ondy_candy
|
| 提出日時 | 2016-09-18 20:45:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-24 05:16:26 |
| 合計ジャッジ時間 | 1,438 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
# coding: utf-8
if __name__ == '__main__':
l, k = [int(i) for i in input().split()]
quotient = l // (k * 2)
remainder = l % (k * 2)
if remainder == 0:
quotient -= 1
result = k * quotient
print(result)
ondy_candy