https://www.acmicpc.net/problem/2869
#include<stdio.h> int main() { int a,b,v; scanf("%d %d %d",&a,&b,&v); int k=(v-b)/(a-b); int m=(v-b)%(a-b); if(m==0) printf("%d",k); else printf("%d",k+1); }