Sunday, June 26, 2016

Published June 26, 2016 by with 0 comment

UVA 12917 Solution

#include<cstdio>
using namespace std;

int main()
{
    int h,p,o;
    while (scanf("%d%d%d",&p,&h,&o)!=EOF)
    {
        if (h+p>o) printf("Hunters win!\n");
        else printf("Props win!\n");
    }
    return 0;
}
      edit

0 comments:

Post a Comment