Loading

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页
摘要: 最近考完试了。闲下来就正好刷刷以前没刷完的搜索专题。 简单搜索就没啥好讲的啦。就是暴力bfs和dfs。 这篇博客是kuangbin搜索进阶的专题的总结 八数码问题太经典啦。通过它来学习搜索的进阶技巧就很舒服。 首先是最简单的康拓优化。 康托展开(Hash序列权值,可以用于序列打表: int jc[1 阅读全文
posted @ 2020-06-23 21:48 ViKyanite 阅读(145) 评论(0) 推荐(0)
摘要: 数论: 快速乘: ll ModMul(ll a,ll b,ll n){//快速积取模 a*b%n ll ans=0; while(b){ if(b&1) ans=(ans+a)%n; a=(a+a)%n; b>>=1; } return ans; } 快速幂: ll ModExp(ll a,ll b 阅读全文
posted @ 2020-06-13 21:51 ViKyanite 阅读(199) 评论(0) 推荐(0)
摘要: ZAFU的CS的windows编程课设——单机三国杀 我在上面耗费了许多的心血,希望后来的人能看懂并把它完善吧 (虽然我放上来就是为了给你们白嫖,但还是希望你们能改改 ps.如果失效了可以在评论区留言哦 链接:https://pan.baidu.com/s/1WNfjEonqAnM1CTQH-tt8 阅读全文
posted @ 2020-06-12 13:10 ViKyanite 阅读(279) 评论(0) 推荐(0)
摘要: 原来只是想把树状数组放到我的模板里的,但是越学越多,那就直接开个搬运专题吧 树状数组(搬运: 原文地址:https://blog.csdn.net/qq_35885746/article/details/89247993 树状数组实现单点与区间操作 由于最近经常被二维问题卡住,而且二维线段树日常写炸 阅读全文
posted @ 2020-06-03 15:29 ViKyanite 阅读(162) 评论(0) 推荐(0)
摘要: 链式前项星: struct E { int to, w, next; }edge[N]; //这里千万要注意,如果题目是双向边的话,这里的N要开2*N int tot, head[N]; //加边 inline void add_edge(int u, int v, int w) { edge[to 阅读全文
posted @ 2020-05-25 18:30 ViKyanite 阅读(232) 评论(0) 推荐(0)
摘要: 题目传送门:https://vjudge.net/contest/373491 阅读全文
posted @ 2020-05-15 09:00 ViKyanite 阅读(109) 评论(0) 推荐(0)
摘要: 李超树 点分治 LCA(最近共同祖先) LIS(最长上升子序列) 仙人掌树 地克雷卷积 替罪羊树 阅读全文
posted @ 2020-05-14 11:27 ViKyanite 阅读(146) 评论(0) 推荐(0)
摘要: 对拍程序: freopen("in.txt","r",stdin); //输入重定向,输入数据将从in.txt文件中读取freopen("out.txt","w",stdout); //输出重定向,输出数据将保存在out.txt文件中duipai.bat@echo offfc out.txt out 阅读全文
posted @ 2020-05-13 22:18 ViKyanite 阅读(184) 评论(0) 推荐(0)
摘要: 顺便取消了可以同时键盘与鼠标移动的功能(因为没啥用),现在只能使用鼠标 删除了一些冗余的代码 修改了鼠标点击某些地方导致程序崩溃的bug //windows.h文件中包含应用程序中所需的数据类型和数据结构的定义 #include <windows.h> #include <stdlib.h> #in 阅读全文
posted @ 2020-04-11 10:57 ViKyanite 阅读(320) 评论(0) 推荐(0)
摘要: //windows.h文件中包含应用程序中所需的数据类型和数据结构的定义 #include <windows.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include "menu_4.h" #include <math. 阅读全文
posted @ 2020-04-07 17:04 ViKyanite 阅读(222) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页