https://www.acmicpc.net/problem/24313
기울기 조건: a1 ≤ c 시작점 조건: f(n0) ≤ g(n0), 즉 a1 n0 + a0 ≤ c n0
a1,a0 = map(int,input().split()) c = int(input()) n = int(input()) if a1 * n + a0 <= c * n and a1 <= c: print(1) else: print(0)```