题解列表
C++:动态规划记忆化【涉及递归】
摘要:解题思路:记忆化就是把计算过的存储起来,下一次需要的时候直接使用就可以注意事项:参考代码:#include <iostream>#include<vector>using na……
C++:set容器+vector容器+更改set容器排列规则
摘要:解题思路:注意事项://修改方法2// 比较函数bool compare(int a, int b){ return a > b; // 这里定……
题解 1072: 汽水瓶,递归
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int num;//可以喝的汽水数量void fun(int len) {//len是空瓶子数量 ……
T1003 密码破译
摘要:解题思路:注意事项:参考代码:s=input()lst=[]lst=[ord(i) for i in s]for i in lst: i=chr(i+4) &nb……
T1004 母牛递归
摘要:解题思路:注意事项:参考代码:def f(n): if m[n]!=0: return m[n]  ……
1074,直接通过模运算来解决
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int isM(char *n) { int ……
set与stringstream字符串流
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ ……
数列排序(C++)笔记
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ ……
明明的随机数(set容器自动排序和去重)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&……