0708kwo   3년 전

전 아무리 짱구를 굴려도

도무지 while로 맞추는거 말곤 생각이안납니다.ㅜㅜ

0708kwo   3년 전

'''

Welcome to GDB Online.

GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,

C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.

Code, Compile, Run and Debug online from anywhere in world.

'''

import sys

A,B,C = map(int,input().split())

net_profit = C - B

if net_profit <= 0 :

print('-1')

sys.exit(0)

net_sll = A // (C-B) + 1

print(net_sll)

댓글을 작성하려면 로그인해야 합니다.