The Mango Truck Solution || Codechef Starters - 37

        

The Mango Truck Solution 

Codechef Starters - 37
Problem Code : MANGOES

Solution :

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

int main()
{
    ll t = 1;
    cin >> t;
    while (t--)
    {
        ll x, y, z;
        cin >> x >> y >> z;
        ll total = z - y;
        cout << total / x << "\n";
    }
}

Comments