题解列表

筛选

C++:豆包来的动态规划

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <vector>using namespace std;int main() { ……

吹哨传球-递推

摘要:解题思路:递推注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint……

T1020 猴子偷桃

摘要:解题思路:注意事项:参考代码:n=int(input())def f(n): s=1 while n-1: ……

T1017 完数判断

摘要:解题思路:注意事项:参考代码:n=int(input())for a in range(2,n+1,2): b=[1] for i in range……

排座椅[NOIP2008 年普及组]:贪心

摘要:解题思路:贪心策略, 分隔最多同学对数倒序排列, 选取前k(l)个加入vector, 然后以Idx排序输出注意事项:参考代码:#include<bits/stdc++.h>using&……

ISBN码-模拟+双指针

摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(……