题解列表

筛选

编写题解 1861: 程序员爬楼梯

摘要:解题思路:类似于斐波那契数列不过递推公式为:F(n) = F(n -1) + F(n - 3)注意事项:参考代码:n = int(input())dp = [1, 1, 2, 3]#dp[i] 中 i……

注意有个空格

摘要:注意事项:注意有个空格!!!!!!!!!!!!!最后一个数字后边有个空格!!!!!!!printf("%d ",stu[i].score[2]);参考代码:#include<stdio.h>#defi……

三国游戏 贪心算法

摘要:# 三国游戏n = int(input())a= list(map(int,input().split()))b = list(map(int, input().split()))c = list(m……

归并排序(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e5 + 10; int arr[N],tmp[N],……

快速排序(C++)

摘要:#include<iostream> using namespace std; int arr[100000]; int getpivot(int left, int right) { i……