About Me

About Me : I have been working as a Software Engineer for various international companies for four years.Currently, I am working as a full stack Javascript developer in Petronas(Malaysia).

Skills

Skills • Javascript •Typescript •Python •C •Java •ReactJs • Redux • VueJs • NestJs • React Testing Library • Django• PostgreSQL • MySQL • NodeJs • Git • Docker • Jira • Visual Studio Code • Slack

শুক্রবার, ২৩ মে, ২০১৪

UVA : 12646 - Zero or One

Zero or one


#include <iostream>
#include <cstdio>


using namespace std;

int main()
{
   int a,b,c;
  while((scanf("%d %d %d",&a,&b,&c))==3){

    if(a==b&&b==c){
        cout<<"*"<<endl;
    }
    else if(a==b&&a!=c){
        cout<<"C"<<endl;
    }
    else if(a==c&&a!=b){
        cout<<"B"<<endl;
    }
    else if(b==c&&a!=b){
        cout<<"A"<<endl;
    }
  }
    return 0;
}

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন