题解列表

筛选

剪刀石头布 (C语言代码)

摘要:解题思路:利用减法,列举几种情况下的结果注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a-b; i……

简单的a+b (C语言代码)

摘要:解题思路:多组数据相加,需要不停的接受数据并计算和。这里用到scanf的返回值加while循环注意事项:参考代码:#include <stdio.h>int main(){ int a,b; whil……