← Back to List
27262번: Лифт ↗
Solutions
Python 3
80 B | 80 chars
n, k, a, b = map(int, input().split()) d = k + n - 2 print(d * b, (n - 1) * a)