結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-25 01:23:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 5,000 ms |
| コード長 | 251 bytes |
| コンパイル時間 | 357 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 61,824 KB |
| 最終ジャッジ日時 | 2024-09-29 10:32:53 |
| 合計ジャッジ時間 | 2,250 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys, math, random, time
L, K = map(int, input().split())
ans, flg = divmod(L, 2 * K)
if flg:
print(ans * K)
else:
print(max(ans - 1, 0) * K)