递推 超时的可以看看 摘要: #include #include #include using namespace std; long long dp[100]; …… 题解列表 2021年01月04日 0 点赞 0 评论 727 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C++代码) 摘要:解题思路:一个for就能解决吧注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ int n,m=…… 题解列表 2021年01月04日 0 点赞 0 评论 525 浏览 评分:0.0
[编程入门]求和训练-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <iomanip>using namespace std;int main(){ int a,b,c; int s…… 题解列表 2021年01月04日 0 点赞 0 评论 746 浏览 评分:0.0
The 3n + 1 problem -题解(C语言代码) 摘要:解题思路: 函数的递归 用全局变量记录函数调用的次数。注意事项:a,b的大小 正负参考代码:#include<stdio.h>int T=1; //记录函数的调用次数void odd_even(uns…… 题解列表 2021年01月04日 0 点赞 0 评论 387 浏览 评分:0.0
蓝桥杯历届试题-回文数字-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<algorithm>#include<sstream>using namespace std;int main()…… 题解列表 2021年01月05日 0 点赞 0 评论 393 浏览 评分:0.0
二级C语言-平均值计算-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class test1053 { public static void main(String[] …… 题解列表 2021年01月05日 0 点赞 0 评论 620 浏览 评分:0.0
[编程入门]求和训练-题解(Python代码) 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())e=f=g=0for i in range(1,a+1): e += ifor i in range…… 题解列表 2021年01月06日 0 点赞 0 评论 475 浏览 评分:0.0
[编程入门]链表合并-题解(C语言代码) 摘要:参考代码:#include<stdio.h>#include<malloc.h>/*构造结构体*/struct cell{ int x; int score; struct cell*next;}ce…… 题解列表 2021年01月07日 0 点赞 0 评论 671 浏览 评分:0.0
蓝桥杯算法提高VIP-多项式输出-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,m; int a[101]; scanf("%d",&n); for(i=0;i<=n…… 题解列表 2021年01月07日 0 点赞 0 评论 467 浏览 评分:0.0
[编程入门]有规律的数列求和-题解(Python代码) 摘要: n = int(input()) lst = [1,2] sum = 0 for i in range(0,n): sum += lst[i+1]/l…… 题解列表 2021年01月07日 0 点赞 0 评论 505 浏览 评分:0.0