study


私信TA

用户名:Cnewpepo

访问量:1706

签 名:

等  级
排  名 4575
经  验 1626
参赛次数 1
文章发表 5
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

解题思路:

注意事项:

参考代码:

#include<stdio.h>

int main()

{

int s;

int x = 0, y = 0;// x 为鸡的数量 y 为兔的数量


scanf("%d", &s);

x = 40 - s;

y = 2 * s - 40;

printf("%d %d", y, x);

return 0;

}


 

0.0分

2 人评分

  评论区