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 LIVE ARCHIEVE : 6758 - Balloons Colors

#include <bits/stdc++.h>
#define sc(a) scanf("%d",&a)
#define scd(a,b) scanf("%d%d",&a,&b)
#define sct(a,b,c) scanf("%d%d%d",&a,&b,&c)
#define READ freopen ("input.txt","r",stdin)
#define MV 20
using namespace std;

int main(){
   // READ;
   int test,arr[102];
   sc(test);
   while(test--){
       int n,x,y;
          sct(n,x,y);
          for(int i=0;i<n;i++) sc(arr[i]);
                if(arr[0]==x&&arr[n-1]==y) puts("BOTH");
                   else if(arr[0]==x&&arr[n-1]!=y) puts("EASY");
                      else if (arr[0]!=x&&arr[n-1]==y) puts("HARD");
                         else puts("OKAY");
      }


return 0;
}










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

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