Sunday, June 26, 2016

UVA 12917 Solution

Unknown
#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;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,