当前位置: 首页 > 工具软件 > Rabbits > 使用案例 >

No.7 Chickens and Rabbits

万德海
2023-12-01

原文:

Chickens and Rabbits

1000ms 65536K

描述:

In the yard were C chickens and R rabbits. Each chicken has one head and two legs. Each rabbit has one head and four legs. There are total 27 heads and 86 legs in the yard. Calculate C and R.

输入:

N/A

输出:

Two integers C and R.

样例输入:

N/A

样例输出:

not provided

译文:

鸡和兔子问题

1000ms 65536K

描述:

在院子里有C只鸡和R只兔子,每只鸡有一个头和两只脚,每只兔子有一个头和四只脚。现在的院子里一共有27个头和86只脚,问:鸡和兔子的数量分别是多少。

输入:

输出:

两个整数C和R

样例输入:

N/A

样例输出:

不提供

 类似资料: