题解列表

筛选

优质题解

Cylinder圆柱体:简单的数学逻辑题

摘要:解题思路:本题中要求最大的圆柱体积,则需要分两种情况考虑,最后比较得出最大的体积作为最后的结果,这里就是考虑没有用来切割圆柱底面的那一半纸张的哪一边用来卷圆面周长的两种情况,每一种只考虑正好卷完没有重……

三位数反转(两种思路)

摘要:参考代码: 第一种,这种思路最后位可能会出现0,比如210,执行后会变成012 ```c #include int main() { int a; while(~scanf("%……

排序+遍历

摘要:先对数列进行排序,定义a[1]-a[0]为公差,遍历数列,如果有相邻两个数的差不等于公差输出no 否则输出yes ```cpp #include "iostream" using names……

超级玛丽游戏

摘要:解题思路:同理注意事项:参考代码:#include <stdio.h>int main(){    printf( "                ********\n"            " ……

1979: 求平均工资

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int n;……

C语言训练-阶乘和数*

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int Weishu(int n)//判断位数{    int i = 0;    while (n ……