#include<stdio.h> #define C 299792458 #define DIS 200000 #define LTT /1000000.0 //distance 距离 #define VV(f0,f1) ((f1-f0)/(f1+f0)*C) int main() { int h, a, b, k, pos = 0; double v, t; int flag; while (scanf("%d", &h) != EOF) { scanf("%d %d %d", &a, &b, &k); flag = 0; if (a <= b) { if (a > h)/// flag = 1; } else { if (a > h)/// flag = 1; if ( (k*(a-b)) > b ) flag = 1; //else } if (flag) printf("Case #%d: White win\n", (pos+1)); else printf("Case #%d: Unknow\n", (pos+1)); /*if ( (a>h) || (k*(a-b)>b) flag[pos] = 1; else { }*/ pos++; } } |
Double click to view unformatted code.