#include<bits/stdc++.h> using namespace std; int main(){ int h,a,b,k,d=1; while(cin>>h>>a>>b>>k&&h!=EOF){ cout<<"Case #"<<d<<": "; d++; if(h-a<=0) cout<<"White win"<<endl; else{ if((a-b)*k>b) cout<<"White win"<<endl; else cout<<"Unknow"<<endl; } } return 0; } |
Double click to view unformatted code.