結果
| 問題 |
No.1517 Party Location
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-24 21:23:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 163 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 81,848 KB |
| 実行使用メモリ | 57,856 KB |
| 最終ジャッジ日時 | 2024-07-02 13:53:56 |
| 合計ジャッジ時間 | 1,440 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
d = int(input())
a,b = map(int,input().split())
min_v = 10**18
for x in range(0,d+1):
if min_v > x*a + (d-x)*b:
min_v = x*a + (d-x)*b
print(min_v)