Codeforces Round #224 Div.2 Problem.B--Number Busters
#include<stdio.h>#include<stdlib.h>main(){__int64 a, c;double b, w, x;scanf("%I64d%lf%lf%lf%I64d", &a, &b, &w, &x, &c);long long n;double p;if(a < c){p = ((c-a) * w - b) / (w-x);n = p;double d = p - n;if(d > 0)n += 1;}elsen = 0;printf("%I64d\n", n);}
?