View Code of Problem 13

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

int time =0;
int hp;
int h,a,b,k;

while(scanf("%d %d %d %d",&h,&a,&b,&k)!=EOF)
{
    cout<<"Case#k:"<<++time<<"";
    if((a-b)*k-h>=0){
        cout<<"White win\n";
    }
    else
        cout<<"Unknow\n";

}





return 0;
}

Double click to view unformatted code.


Back to problem 13