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, 求解下列方程

{x+y=a2x+4y=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

  • 保证有整数解

[NOI蓝图杯] 六月月赛-入门赛

Not Attended
Status
Done
Rule
Ledo
Problem
6
Start at
2023-6-2 12:00
End at
2023-6-6 0:00
Duration
84 hour(s)
Host
Partic.
99