Sunday, June 26, 2016

Published June 26, 2016 by with 0 comment

UVA 12646 Solution

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

0 comments:

Post a Comment