Hackerrank mathematics solution - find the float solution - Online Judge Solution

Latest

It is a free Online judges problems solution list. Here you can find UVA online Judge Solution, URI Online Judge Solution, Code Marshal Online Judge Solution, Spoz Online Judge Problems Solution

Saturday, May 6, 2017

Hackerrank mathematics solution - find the float solution

Hackerrank mathematics solution - find the float solution


HackerRank Online Judge Solution  | Mathematics
HackerRank Main Problem Link - https://www.hackerrank.com/challenges/find-point

Problem Name: HackerRank Problem  find the float


Online Judge : HackerRank Online Judge Solution
Category: mathematics
Solution Language : C, C plus plus

Hackerrank mathematics solution - find the float solution


HackerRank Solution find the float Code in C,CPP:


#include <iostream>
using namespace std;

int main() {
    int T;
    cin >> T;
    for(int t = 0; t < T; t++){
        int x1,x2,y1,y2;
        cin >> x1 >> y1 >> x2 >> y2;
        cout << 2*x2-x1 << " " << 2*y2-y1 << endl;
    }
    return 0;
}

No comments:

Post a Comment