[백준] 1712 손익분기점

김은서·2021년 12월 9일
0

백준

목록 보기
42/48

Python Code

import sys
sys.stdin = open('input.txt')
T = int(input())
for tc in range(1, T+1):
    A, B, C = map(int, input().split())
    if B>=C:
        print(-1)
    else:
        print(int(A/(C-B)+1))
    
profile
Gracelog

0개의 댓글