一种正常的思维简单暴力 摘要:解题思路:暴力求解注意事项:注意sum函数算出来之后最后一次不需要再弹上去参考代码:#include <stdio.h>#include <math.h>double sum(double a,dou…… 题解列表 2021年11月22日 0 点赞 0 评论 285 浏览 评分:0.0
[编程入门]三个数最大值 (调用函数) C++ 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int max(int a,int b){ if(a>b) return a; else r…… 题解列表 2021年11月22日 0 点赞 0 评论 458 浏览 评分:0.0
数据结构-链表的基本操作(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> typedef struct _Node { int data; st…… 题解列表 2021年11月22日 0 点赞 0 评论 458 浏览 评分:0.0
龟兔赛跑预测 摘要:解题思路:没什么思路,按题意写就是注意事项:参考代码:#include<iostream> using namespace std; int main() { int v1,v2,t,…… 题解列表 2021年11月22日 0 点赞 0 评论 326 浏览 评分:0.0
蓝桥杯算法提高VIP-不同单词个数统计 C++ 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<string> #include<cstdio> #include<c…… 题解列表 2021年11月22日 0 点赞 0 评论 673 浏览 评分:0.0
编写题解 1143: C语言训练-素数问题 摘要:解题思路:简单的循环加判断注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(Strin…… 题解列表 2021年11月23日 0 点赞 0 评论 426 浏览 评分:0.0
编写题解 1144: C语言训练-自守数问题 摘要:解题思路:这道题目最难的地方在于位数的计算,我们可以利用字符串的length()方法,利用标志位保证末尾无空格注意事项:1.注意中间是两个空格,末尾无空格2.注意for循环中i是long类型,如果是i…… 题解列表 2021年11月23日 0 点赞 1 评论 354 浏览 评分:0.0
第二次用递归解题 摘要:解题思路: 递归注意事项: 记得赋初值参考代码:#include<stdio.h>int main(){ int n,a[55]={0,1,2,3,4}; while(~scanf("%d…… 题解列表 2021年11月23日 0 点赞 0 评论 345 浏览 评分:0.0
编写题解 1145: C语言训练-自由落体问题 摘要:解题思路:跟最前面那道题思路一样,此处不再赘述(那道题用的c)注意事项:注意浮点数的运算参考代码:import java.util.Scanner;public class Main { pub…… 题解列表 2021年11月23日 0 点赞 0 评论 397 浏览 评分:0.0
直接用max(), 摘要:解题思路:直接使用max()函数注意事项:简洁明了参考代码:python的特点就是简洁,所以一句解决问题print(max(map(int,input().split())))…… 题解列表 2021年11月23日 0 点赞 0 评论 430 浏览 评分:0.0