View Code of Problem 13

#include <iostream>
using namespace std;

int main() {
	int  h,a,b,k;
	int count =0;
	while(cin >>h>>a>>b>>k){
		count++;
		if(a<h&&(b-(a-b)*k)>=0){
			cout << "Case #" << count << ": " << "Unknow" << endl;
		}
		else{
			cout << "Case #" << count << ": " << "White win" << endl;
		}
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 13