Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #include <math.h>
- #include<string>
- #define pi acos(-1.0)
- #define ll long long int
- using namespace std;
- int main() {
- ll t;
- cin >> t;
- while(t--) {
- ll a, b, c;
- cin >> a >> b >> c;
- cout << c*(2*a-b)/(a+b) << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement