C语言训练-谁家孩子跑最慢* 摘要:```cpp #include using namespace std; int main(){ int a,b,c,d,i,j,k; for(a=1;ad){ if…… 题解列表 2023年02月01日 0 点赞 0 评论 399 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double t; scanf("%lf",&t); if (t<=20){ printf("%.2lf",…… 题解列表 2023年02月01日 0 点赞 0 评论 254 浏览 评分:0.0
再多看一眼就会爆炸 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char a; scanf("%c",&a); if(a%2>0){ printf(…… 题解列表 2023年02月01日 0 点赞 0 评论 375 浏览 评分:0.0
1127基础解法(Python) 摘要:解题思路:可以用数学原理,也可以当做找规律注意事项:参考代码:n = int(input())cubic = pow(n, 3)square = pow(n, 2)if square % 2 == 0…… 题解列表 2023年02月01日 0 点赞 0 评论 331 浏览 评分:0.0
简单算数表达式求值(switch做法,C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int num1,num2; char ch; scanf…… 题解列表 2023年02月01日 0 点赞 1 评论 752 浏览 评分:8.7
字符替换C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char beitihuan,tihuanzhe; char a[31]; …… 题解列表 2023年02月01日 0 点赞 0 评论 602 浏览 评分:6.0
甲流病人初筛(结构体做法、C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct person{ char name[10]; float temperat…… 题解列表 2023年02月01日 0 点赞 0 评论 664 浏览 评分:9.9
1157 亲和数 利用函数解决 摘要:#include<stdio.h>#include<math.h>int fun(int n){ int i,a,b,c,m,sum=0; m=sqrt(n);//可提高效率 for(i=2;i<=…… 题解列表 2023年02月01日 0 点赞 0 评论 296 浏览 评分:9.9
递归写法,新手尝试,欢迎优化 摘要:#include<stdio.h> #include<math.h> int Fun(int x) { while (x > 0) { return 2 * ((int)pow(1…… 题解列表 2023年02月01日 0 点赞 0 评论 216 浏览 评分:0.0
自定义函数之整数处理(入门必备) 摘要:题目:输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。写三个函数; ①输入10个数;②进行处理;③输出10个数。分析:1,输入10个整数,并实现各个整数的交换,要用到数组(a…… 题解列表 2023年02月01日 0 点赞 0 评论 413 浏览 评分:9.9