Beakjoon&프로그래머스/파이썬
[백준/파이썬] 30007번 라면 공식
현장
2023. 9. 25. 14:44
-Code
for _ in range(int(input())):
a, b, x = map(int, input().split())
print(a * (x - 1) + b)