結果
| 問題 |
No.1517 Party Location
|
| コンテスト | |
| ユーザー |
lotoka
|
| 提出日時 | 2021-05-29 15:08:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 157 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-07 23:07:21 |
| 合計ジャッジ時間 | 1,348 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 13 |
ソースコード
d = int(input())
a = int(input())
b = int(input())
x = 1
while x * a + (d - x) * b >= (x + 1) * a + (d - x - 1) * b:
x += 1
print(x * a + (d - x) * b)
lotoka