#include<iostream> #include<stdio.h> using namespace std; int main(){ int time =0; int hp; int h,a,b,k; while(scanf("%d %d %d %d",&h,&a,&b,&k)!=EOF) { cout<<"Case #"<<++time<<":"; if((((a-b)*k-b)>0)||(h-a)<=0){ cout<<" White win\n"; } else cout<<" Unknow\n"; } return 0; } |
Double click to view unformatted code.