Type: Default 1000ms 256MiB

解方程

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

解二元一次方程

题目描述

给定 a,ba, b, 求解下列方程

$$\left\{\begin{matrix} x + y = a \\ 2x + 4y = b \end{matrix}\right. $$

数据格式

输入格式

一行输入两个整数 a,ba, b

输出格式

一行输出两个整数 x,yx, y

样例

2 6
1 1

数据范围

1<=a,b<=100001 <= a, b <= 10000

  • 保证有整数解