Work out the bottle problem 摘要:解题思路:注意题目给的信息,空杯子是3的倍数,就对获得的空杯子进行取余直到为2或0注意事项:时间的开销,当小于2时直接退出参考代码:#include<stdio.h>int main(){ int n…… 题解列表 2022年12月22日 0 点赞 0 评论 209 浏览 评分:0.0
计算球体积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415#include<math.h>int main(){ double r,v; while…… 题解列表 2022年12月22日 0 点赞 0 评论 339 浏览 评分:0.0
3016:for循环问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a; int sum = 0; scanf("%d",&a); …… 题解列表 2022年12月22日 0 点赞 0 评论 339 浏览 评分:0.0
元始真解!编写题解 1999: 回文判断 摘要:#####解题思路:设反向扫描双指针为i和j,如果s[i]和s[j]相同,则执行i++和j—;如果s[i]和s[j]不同,那么或者删除s[i],或者删除s[j],看剩下的字符串是否是回文串。 ```…… 题解列表 2022年12月22日 0 点赞 0 评论 726 浏览 评分:9.9
元始真解!!!编写题解 1200: 回文串 摘要:###反向扫描——尺取法 #####反向扫描:i、j 方向相反,i 从头到尾,j 从尾到头,在中间相会。也可以把反向扫描的 i、j 指针称为「左右指针」 ##### 注意:用尺取法的最关键之处在于…… 题解列表 2022年12月22日 0 点赞 0 评论 467 浏览 评分:9.9
亲和数 简单直接的解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int M; scanf("%d", &M); while (M--) { int A, B; int sum…… 题解列表 2022年12月22日 0 点赞 0 评论 233 浏览 评分:9.9
求[X,Y]内被除3余1并且被除5余3的整数的和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,i,s=0; scanf("%d%d",&x,&y); for(i=x;i<y;i++) { …… 题解列表 2022年12月22日 0 点赞 0 评论 300 浏览 评分:0.0
2759:格式输入-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i; scanf("%d",&i); printf("%c",i); }…… 题解列表 2022年12月22日 0 点赞 0 评论 951 浏览 评分:7.3
2757:强制类型转换-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { float n; scanf("%f",&n); …… 题解列表 2022年12月22日 0 点赞 0 评论 758 浏览 评分:8.7
[编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,j; for(i=0;i<10;i++) { scanf("%d",&a[i]); }…… 题解列表 2022年12月22日 0 点赞 0 评论 400 浏览 评分:9.9