0
点赞
收藏
分享

微信扫一扫

Chickens and Rabbits(NOIOPJENGLISH10)

荷一居茶生活 2022-01-24 阅读 24
c++

Chickens and Rabbits

https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH10

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.

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

输入:

N/A

输出:

Two integers C and R.

两个正整数c和r

样例输入:

N/A

样例输出:

not provided
举报

相关推荐

0 条评论