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

Chickens and Rabbits

左丘昊天
2023-12-01



OpenJudge - 10:Chickens and Rabbits

描述

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

在一个院子里有c只鸡和r只兔。每只鸡有一个头和两条腿,每只兔有一个头和四条腿。在院子里共有27个头和86条腿,计算c和r;

输入

输出

两个整数c和r

 类似资料:

相关阅读

相关文章

相关问答