#A. 【例11.1】鸡兔同笼

    Type: Default 1000ms 256MiB

【例11.1】鸡兔同笼

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.

说明

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

输入格式

头和脚的数量。

输出格式

鸡和兔各自数量。一个空格隔开。

样例

30 90
15 15

C++第一章测试题(11/24)

Not Attended
Status
Done
Rule
Ledo
Problem
5
Start at
2023-11-24 19:15
End at
2023-11-24 19:51
Duration
0.6 hour(s)
Host
Partic.
6