Sunday, June 26, 2016

UVA 12646 Solution

Unknown
#include<cstdio>
using namespace std;

int main()
{
    int a,b,c;
    while (scanf("%d%d%d",&a,&b,&c)!=EOF)
    {
        if (a==b && b==c) printf("*\n");
        else if (a==b) printf("C\n");
        else if (b==c) printf("A\n");
        else printf("B\n");
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,