甲流病人初筛(c++) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <vector>using namespace std;struct Patient { string na…… 题解列表 2023年09月23日 2 点赞 0 评论 576 浏览 评分:10.0
优质题解 Cylinder圆柱体:简单的数学逻辑题 摘要:解题思路:本题中要求最大的圆柱体积,则需要分两种情况考虑,最后比较得出最大的体积作为最后的结果,这里就是考虑没有用来切割圆柱底面的那一半纸张的哪一边用来卷圆面周长的两种情况,每一种只考虑正好卷完没有重…… 题解列表 2023年09月27日 0 点赞 0 评论 689 浏览 评分:10.0
三位数反转(两种思路) 摘要:参考代码: 第一种,这种思路最后位可能会出现0,比如210,执行后会变成012 ```c #include int main() { int a; while(~scanf("%…… 题解列表 2023年10月01日 0 点赞 0 评论 1053 浏览 评分:10.0
排序+遍历 摘要:先对数列进行排序,定义a[1]-a[0]为公差,遍历数列,如果有相邻两个数的差不等于公差输出no 否则输出yes ```cpp #include "iostream" using names…… 题解列表 2023年10月09日 0 点赞 0 评论 422 浏览 评分:10.0
超级玛丽游戏 摘要:解题思路:同理注意事项:参考代码:#include <stdio.h>int main(){ printf( " ********\n" " …… 题解列表 2023年10月09日 1 点赞 0 评论 1087 浏览 评分:10.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:较长的字符串减去共有的字符就为答案!!!注意事项:参考代码:#include <stdio.h>#include <string.h>#include <math.h>int main ()…… 题解列表 2023年10月15日 1 点赞 1 评论 453 浏览 评分:10.0
1979: 求平均工资 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int n; …… 题解列表 2023年10月17日 1 点赞 0 评论 381 浏览 评分:10.0
石头剪刀布 简单易懂(来个五星兄弟们)!!!! 摘要:解题思路:石头剪刀布的长度不同 所以用strlen 区分注意事项:简单易懂兄弟们 不懂可以私信我参考代码:#include<stdio.h>#include<string.h>int main(voi…… 题解列表 2023年10月22日 1 点赞 0 评论 550 浏览 评分:10.0
字符串比较 摘要:解题思路:比较字符串,并不是比较字符串的总ASCII值谁的大,而是按字符串顺序,比较每个字符,若有字符大于另一字符串中相比的字符,则判定为此字符串大于另一字符串注意事项:参考代码:#include<s…… 题解列表 2023年10月25日 2 点赞 0 评论 522 浏览 评分:10.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,m,num=0; int a[1000]; scanf ("%d",&n); …… 题解列表 2023年10月25日 1 点赞 0 评论 361 浏览 评分:10.0