Problem Name: Mean Median Problem
Author’s Name: By Pablo Heiber Argentina
Timelimit: 1
Problem Category: AD-HOC
Problem Source: https://www.urionlinejudge.com.br/judge/en/problems/view/1379
Solution:
#include <bits/stdc++.h>using namespace std;
int main() {
long long a, b;
while (cin >> a >> b && (a + b)) {
cout << a - (b - a) << endl;
}
return 0;
}
No comments:
Post a Comment
Thanks..