#B. 【例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++基础2第一章考试(0121)

Not Attended
Status
Done
Rule
Ledo
Problem
5
Start at
2024-1-21 10:30
End at
2024-1-21 11:30
Duration
1 hour(s)
Host
Partic.
6