2093 - I2P(I)2020_Hu_lab0 Scoreboard

Time

2020/09/21 18:30:00 2020/09/21 20:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
11099 Money Money
12873 Simultaneous equations

11099 - Money Money   

Description

Jay, Jolin and JJ are three people.


All of them have some money.


1. Jay and Jolin have X dollors.


2. Jolin and JJ have Y dollors.


3. Jay and JJ have Z dollors.


How many dollars does each of them have?

Input

Three positive even integers, X, Y and Z.

Output

The output contains three positive even integers indicating the money of Jay, Jolin, and JJ. 

There is a whitespace between any two integers and a newline character '\n' at the end of the line.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12873 - Simultaneous equations   

Description

Given two simultaneous equations: 

Please write a program to solve x and y using Cramer's rule.

For more details about Cramer's rule, please refer to the following formulas:

,      

The determinant of 2x2 can be calculated as:

Input

The input contains six integer coefficients: a, b, c, d, e, f, separated by spaces.

-1000 < a, b, d, e < 1000 , -1000000 < c, f < 1000000

 

 

Output

Print out the answer of x and y, separated by a space, you don't have to add a newline at the end. We guarantee that there are exactly one solution for each testcase, and the solution will be integer.

Sample Input  Download

Sample Output  Download

Tags




Discuss