View Code of Problem 13

#include <stdio.h>

int main(int argc, char* argv[])
{
	int p,a,b,k,i=1;
	while (scanf("%d%d%d%d",&p,&a,&b,&k) !=EOF){
		if (p+2*b>a*k)
			printf("Case #%d: Unknow\n",i);
		else 
			printf("Case #%d: White win\n",i);
		i++;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 13