Janmansh and Coins Solution || Codechef March Cook-Off 2022

       

XYZ Solution 

Codechef March Cook-Off 2022
Problem Code : 

Problem Link : 

Solution :

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

void solve()
{
    ll x, y;
    cin >> x >> y;
    cout << 10 * x + 5 * y << "\n";
}

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

 

Comments