#F. 鸡兔同笼

    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.

Description

数学中有个经典的“鸡兔同笼”问题,已知头共X个,脚共Y只,问笼中的鸡和兔各有多少只?

Input Format

一行用空格隔开的两个整数。分别表示头和脚的个数。

Output Format

一行用空格隔开的两个整数。分别表示鸡和兔的个数。

Sample

33 90

output

21 12

Hint

保证保证鸡和兔的个数不会超过100.

时间限制:1s1s 空间限制:256MB

20200830-模拟类专题训练

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2020-8-30 14:09
End at
2020-9-10 14:09
Duration
264 hour(s)
Host
Partic.
21