题解列表

筛选

编写题解 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……

贪心算法——C 填充

摘要:解题思路:将字符&#39;?&#39;当作一个万能字符(就是为?就成为一个字串),上代码注意事项:参考代码:#include <stdio.h>#include <string.h>char a[10……

3009: 判断闰年

摘要:解题思路:闰年两种判定方法:要么能被4整除且不能被100整除,或者能被400整除可得参考代码:#include<iostream> using namespace std; int main() ……

找规律找规律

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; cin >> n >> m; int a[……