View Code of Problem 13

#include<iostream>
using namespace std;
int main(){
	

	int h,a,b,k;
	
	while(cin>>h>>a>>b>>k){
		
		if(a>=h){
			cout<<"White win";
		}
		else{
			if(a*k>(k+1)*b){
				cout<<"White win";
			}
			else{
				cout<<"Unknow";
			}
		}
	}
}

Double click to view unformatted code.


Back to problem 13