URI ONLINE JUDGE SOLUTION 1379 - Online Judge

Latest

This is an Online Judge Solution Base Site. We can discuss & Solve any contest solution in Programming.

Friday, April 10, 2020

URI ONLINE JUDGE SOLUTION 1379

Problem Number: 1379
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..