C++-循环嵌套-鸡兔同笼
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.
Background
Description
鸡兔同笼,共有35个头,94只脚,求鸡和兔子各多少只? 设鸡有x只,兔子有y只,由题意得方程组 x+y=35 2x+4y=94 联立解得x = 23, y = 12 试用程序实现上述过程,输入头与脚的数量,算出鸡和兔子的只数
Format
Input
Output
Samples
35
94
23 12
Limitation
1s, 1024KiB for each test case.
循环嵌套
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2024-4-27 17:15
- End at
- 2024-5-12 17:15
- Duration
- 360 hour(s)
- Host
- Partic.
- 5