通过双端队列维护的简单LRU算法 摘要: 知识点 **LRU**(Least recently used,最近最少使用)算法根据数据的历史访问记录来进行淘汰数据,其核心思想是“如果数据最近被访问过,那么将来被访问的几率也更高”。 解…… 题解列表 2025年04月16日 1 点赞 0 评论 332 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) (y%4==0&&am…… 题解列表 2025年04月16日 0 点赞 0 评论 206 浏览 评分:0.0
结构体之成绩统计 摘要:解题思路:注意事项:参考代码#include<bits/stdc++.h>using namespace std;struct student{ char ID[10]; char nam…… 题解列表 2025年04月16日 0 点赞 0 评论 292 浏览 评分:0.0
函数 宏定义 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;float ZD(int a,int b,int c){ if(b>…… 题解列表 2025年04月16日 0 点赞 0 评论 202 浏览 评分:0.0
c++--study||O.o 全排列枚举 摘要:解题思路:数据量最多只有10,考虑复杂度为阶乘的全排列模拟参考代码:#include<bits/stdc++.h>usingnamespacestd;&nb…… 题解列表 2025年04月16日 1 点赞 0 评论 195 浏览 评分:10.0
c++--study||O.o 深搜DFS(两种写法) 摘要:参考代码:利用设置外部变量#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年04月16日 1 点赞 0 评论 249 浏览 评分:10.0
c++--study||O.o 摘要:参考代码:#include<bits/stdc++.h>usingnamespacestd;usingll=long…… 题解列表 2025年04月16日 1 点赞 0 评论 172 浏览 评分:10.0
c++--study||O.o 摘要:参考代码:#include<bits/stdc++.h>usingnamespacestd;usingll=long…… 题解列表 2025年04月16日 0 点赞 0 评论 244 浏览 评分:10.0
题解 3320: 蓝桥杯2025年第十六届省赛真题-产值调整 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,c; …… 题解列表 2025年04月14日 2 点赞 0 评论 600 浏览 评分:0.0
蓝桥杯2025年第十六届省赛真题-2025 图形 摘要:解题思路:把2025放到数组后输出注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int h,w;int g[4] = {2,0…… 题解列表 2025年04月14日 0 点赞 0 评论 433 浏览 评分:0.0