BaekJoon
2869번 달팽이는 올라가고 싶다
GamJia
2023. 3. 29. 20:04
단계별로 풀어보기 - 기본 수학 1 - 4단계
https://www.acmicpc.net/problem/2869
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int A,B,V;
cin>>A>>B>>V;
int day=ceil(V-B-1)/(A-B); // 반올림
cout<<day+1;
return 0;
}