题解列表

筛选

通过双端队列维护的简单LRU算法

摘要: 知识点 **LRU**(Least recently used,最近最少使用)算法根据数据的历史访问记录来进行淘汰数据,其核心思想是“如果数据最近被访问过,那么将来被访问的几率也更高”。 解……

宏定义之闰年判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) (y%4==0&&am……

结构体之成绩统计

摘要:解题思路:注意事项:参考代码#include<bits/stdc++.h>using namespace std;struct student{ char ID[10]; char nam……

函数 宏定义

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;float ZD(int a,int b,int c){ if(b>……

c++--study||O.o 全排列枚举

摘要:解题思路:数据量最多只有10,考虑复杂度为阶乘的全排列模拟参考代码:#include<bits/stdc++.h>usingnamespacestd;&nb……

c++--study||O.o

摘要:参考代码:#include<bits/stdc++.h>usingnamespacestd;usingll=long……

c++--study||O.o

摘要:参考代码:#include<bits/stdc++.h>usingnamespacestd;usingll=long……