➽ Problem:-

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

➽ Solution:-

#include<bits/stdc++.h>

using namespace std;

int main()

{

    int a[100], b[100], Alice=0, Bob=0;

    cin>>a[0]>>a[1]>>a[2];

    cin>>b[0]>>b[1]>>b[2];

   

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

    {

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

        {

            Alice++;

        }

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

        {

            Bob++;

        }

    }

   

    cout << Alice << " " << Bob << endl;

    return 0;

}