题解列表
防御导弹-DP(最长下降子序列)
摘要:解题思路:DP(最长下降子序列)注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const……
金明的预算方案(DP+邻接表)
摘要:解题思路:DP (分别考虑只拿主件, 主件+ 1附件, 主件 + 2附件)注意事项:参考代码:#include<bits/stdc++.h>usingnamespace&n……
邮局选址问题:贪心策略-横纵坐标中位数
摘要:解题思路: 贪心策略, 横纵坐标中位数注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const&nb……
三种方法求解斐波那契数列
摘要:方法一:递推法#include<bits/stdc++.h>usingnamespacestd;intmain(){&nbs……
明明的随机数(set容器自动排序和去重)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&……
数列排序(C++)笔记
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ ……
单词个数统计(C++)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ ……
set与stringstream字符串流
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ ……
1074,直接通过模运算来解决
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int isM(char *n) { int ……