【例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.
说明
数学中经典的“鸡兔同笼”问题,已知头共个,脚共只,问笼中的鸡和兔各有多少只?
输入格式
头和脚的数量。
输出格式
鸡和兔各自数量。一个空格隔开。
样例
30 90
15 15
C++第一章测试题(11/24)
- 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