본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#176 백준 파이썬 [10156] 과자

https://www.acmicpc.net/problem/10156

 

#Solution

K, N, M = map(int, input().split())
answer = (K*N)-M 

if answer > 0:
    print(answer)
else:
    print(0)