Tyre Problem Solution || Codechef Starters - 29

           

Tyre Problem Solution 

Codechef Starters - 29
Problem Code : TYRE

Solution :

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

void solve()
{
    ll n, m;
    cin >> n >> m;
    cout << 2 * n + 4 * m << "\n";
}

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

Comments