Chef and Chocolates Solution || Codechef Starters - 30

            

Chef and Chocolates Solution 

Codechef Starters - 30
Problem Code : CHEFCHOCO

Solution :

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

void solve()
{
    ll c, x, y;
    cin >> c >> x >> y;
    cout << (c - x) * y << "\n";
}

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

Comments