Guess the Bottom Face Solution || Codechef February Cook-Off 2022

     

Guess the Bottom Face Solution 

Codechef February Cook-Off 2022
Problem Code : BOTTOM

Solution :

#include <bits/stdc++.h>
#define ll long long int
#define ull unsigned long long int
using namespace std;

void solve()
{
    ll x;
    cin >> x;
    cout << 7 - x << "\n";
}

int main()
{
    ll t;
    cin >> t;
    while (t--)
    {
        solve();
    }
}

Comments