Solution to the problem number 12646 of UVA - 12646.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int A,B,C;
    while(scanf("%d%d%d",&A,&B,&C)==3)
    {
        if(A!=B&&A!=C)
            cout<<"A"<<endl;
        else if(B!=A&&B!=C)
            cout<<"B"<<endl;
        else if(C!=A&&C!=B)
            cout<<"C"<<endl;
        else if(C==A && A==B)
            cout<<"*"<<endl;
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!