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