优质题解 Cylinder圆柱体:简单的数学逻辑题 摘要:解题思路:本题中要求最大的圆柱体积,则需要分两种情况考虑,最后比较得出最大的体积作为最后的结果,这里就是考虑没有用来切割圆柱底面的那一半纸张的哪一边用来卷圆面周长的两种情况,每一种只考虑正好卷完没有重…… 题解列表 2023年09月27日 0 点赞 0 评论 415 浏览 评分:10.0
三位数反转(两种思路) 摘要:参考代码: 第一种,这种思路最后位可能会出现0,比如210,执行后会变成012 ```c #include int main() { int a; while(~scanf("%…… 题解列表 2023年10月01日 0 点赞 0 评论 785 浏览 评分:10.0
排序+遍历 摘要:先对数列进行排序,定义a[1]-a[0]为公差,遍历数列,如果有相邻两个数的差不等于公差输出no 否则输出yes ```cpp #include "iostream" using names…… 题解列表 2023年10月09日 0 点赞 0 评论 223 浏览 评分:10.0
超级玛丽游戏 摘要:解题思路:同理注意事项:参考代码:#include <stdio.h>int main(){ printf( " ********\n" " …… 题解列表 2023年10月09日 1 点赞 0 评论 959 浏览 评分:10.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:较长的字符串减去共有的字符就为答案!!!注意事项:参考代码:#include <stdio.h>#include <string.h>#include <math.h>int main ()…… 题解列表 2023年10月15日 1 点赞 1 评论 268 浏览 评分:10.0
1979: 求平均工资 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int n;…… 题解列表 2023年10月17日 1 点赞 0 评论 192 浏览 评分:10.0
石头剪刀布 简单易懂(来个五星兄弟们)!!!! 摘要:解题思路:石头剪刀布的长度不同 所以用strlen 区分注意事项:简单易懂兄弟们 不懂可以私信我参考代码:#include<stdio.h>#include<string.h>int main(voi…… 题解列表 2023年10月22日 0 点赞 0 评论 345 浏览 评分:10.0
计算输入数据的和与乘积(用char数组存) 摘要:参考代码: ```c #include #include int main() { char a[100]; gets(a); int len=strlen(a); int …… 题解列表 2023年10月28日 0 点赞 0 评论 283 浏览 评分:10.0
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int Weishu(int n)//判断位数{ int i = 0; while (n …… 题解列表 2023年10月31日 0 点赞 0 评论 330 浏览 评分:10.0
蓝桥杯算法训练-数据交换 摘要:参考代码: ```c #include void swap(int *x,int *y) { int t=*x; *x=*y; *y=t; } int mai…… 题解列表 2023年10月31日 0 点赞 0 评论 197 浏览 评分:10.0