2007: 计算输入数据的和与乘积 摘要:解题思路:注意事项:输入 0 时要额外赋值pro参考代码:#include <stdio.h> int main(){ int num,sum=0,pro=1; scanf("%d",&nu…… 题解列表 2021年03月05日 0 点赞 1 评论 560 浏览 评分:10.0
2006: 寻找奇整数 摘要:解题思路:注意事项:符合其中一个条件就break参考代码:#include <stdio.h> #define LEN 15 int main() { int exist=1,num,arr[…… 题解列表 2021年03月05日 0 点赞 0 评论 305 浏览 评分:0.0
1986: 鸡兔同笼 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int total; scanf("%d",&total); if(total>=20&&t…… 题解列表 2021年03月05日 0 点赞 0 评论 414 浏览 评分:0.0
双向循环链表 摘要:#include <bits/stdc++.h> using namespace std; typedef struct Node{ int data; Node *prev,*next; …… 题解列表 2021年03月05日 0 点赞 0 评论 238 浏览 评分:0.0
1999: 回文判断 摘要:解题思路:str[i]==str[len-1-i] 恒成立就是回文数注意事项:初始化字符串str、累加数len、判断标记isPal参考代码:#include <stdio.h> int main()…… 题解列表 2021年03月05日 0 点赞 0 评论 462 浏览 评分:9.9
1989: 奇数个数 摘要:解题思路:入门题一般定义一个长数组即可。比较字符数字-‘0’的ASCII码值注意事项:参考代码:#include <stdio.h> int main(){ char str[1000]; …… 题解列表 2021年03月05日 0 点赞 0 评论 480 浏览 评分:0.0
1988: 求总时间 摘要:解题思路:cost*=1.05注意事项:参考代码:#include <stdio.h> int main(){ float cost=30,sum=0; int layer; scanf…… 题解列表 2021年03月05日 0 点赞 0 评论 260 浏览 评分:0.0
1978: 分类计算。输出时用?:判断 摘要:解题思路:输出时用?:判断注意事项:参考代码:#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%…… 题解列表 2021年03月05日 0 点赞 0 评论 359 浏览 评分:0.0
2008: C++函数重载练习 摘要:解题思路:注意事项:三目加括号参考代码:#include <iostream> #include <string> #include <string.h> using namespace std…… 题解列表 2021年03月05日 0 点赞 0 评论 453 浏览 评分:0.0
1977: 求中间数。排序后输出中间位 摘要:解题思路:排序后输出中间位注意事项:宏定义不明白就换成普通tab交换参考代码:#include <stdio.h> #define CHANGE(a,b) a^=b,b^=a,a^=b int m…… 题解列表 2021年03月05日 0 点赞 0 评论 593 浏览 评分:0.0