➽ Problem:-

https://www.hackerrank.com/challenges/compare-the-triplets/problem

➽ Solution:-

#include<stdio.h>

int main()

{

    int a[3];

    scanf("%d %d %d", &a[0], &a[1], &a[2]);

    int b[3];

    scanf("%d %d %d", &b[0], &b[1], &b[2]);

   

    int Alice=0,Bob=0,None;

   

    for(int i=0;i<3;i++)

    {

        if(a[i]>b[i])

        {

            Alice++;

        }

        else if(a[i]<b[i])

        {

            Bob++;

        }

        else if(a[i]==b[i])

        {

            None;

        }

    }

    printf("%d %d", Alice, Bob);

    return 0;

}