View Code of Problem 13

#include <iostream>
using namespace std;
int main(){
	int h,a,b,k;
	int no = 1;
	while(cin>>h>>a>>b>>k){
		if(a>=h){
			cout<<"Case #"<<no<<": White win"<<endl;
		}
		else if(b>=(a-b)*k){
			cout<<"Case #"<<no<<": Unknow"<<endl;
		}
		else{
			cout<<"Case #"<<no<<": White win"<<endl;
		}
		no++;
	}
}

Double click to view unformatted code.


Back to problem 13