摘要: dijkstra https://vjudge.net/contest/346398#problem/D #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #define rep(i,x,y) if(( 阅读全文
posted @ 2021-09-07 09:16 IamIron-Man 阅读(41) 评论(0) 推荐(0)
摘要: /* https://vijos.org/p/1028 */ #include<iostream> #include<cstdio> #include<cstring> #define rep(i,x,y) if ((x)<=(y)) for (register int i=(x);i<=(y);i 阅读全文
posted @ 2021-09-06 09:49 IamIron-Man 阅读(184) 评论(0) 推荐(0)
摘要: 树 建树 题目详情 (pintia.cn) #include<iostream> #include<cstdio> #include<cstdlib> #include<set> #include<vector> #define rep(i,x,y) if ((x)<=(y)) for (regis 阅读全文
posted @ 2021-09-05 22:20 IamIron-Man 阅读(19) 评论(0) 推荐(0)
摘要: 在控制面板中卸载HP System Event Utility应用 阅读全文
posted @ 2020-09-24 12:08 IamIron-Man 阅读(1310) 评论(0) 推荐(0)
摘要: 线性方程组形如,高斯消元可以用O(n^3)的复杂度解出x=。 二维vector数组定义后,只能通过push_back一个个读入。 C++代码: #include<iostream> #include<iomanip> #include<cstdlib> #include<cstdio> #inclu 阅读全文
posted @ 2020-09-24 11:55 IamIron-Man 阅读(239) 评论(0) 推荐(0)
摘要: 并查集专题 Wireless Network POJ - 2236 思路 并查集裸题,路径压缩+判断每一个是否满足距离小于等于d的条件,这里可以不sqrt,判断与d*d的大小即可 C++(AC) #include<iostream> #include<iomanip> #include<cstdli 阅读全文
posted @ 2020-09-23 20:47 IamIron-Man 阅读(116) 评论(0) 推荐(0)
摘要: 如果鼠标经常自动唤醒电脑,可以打开powershell(管理员)并输入以下命令: powercfg /devicequery wake_armed 然后系统就会告诉你哪些设备可以唤醒电脑。此时你再键入: powercfg /devicedisablewake "设备名" 注意这个设备名需要是完整的名 阅读全文
posted @ 2020-09-22 17:37 IamIron-Man 阅读(480) 评论(0) 推荐(0)
摘要: K-Kabaleo Lite 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 Tired of boring WFH (work from home), Apollo decided to 阅读全文
posted @ 2020-08-05 11:03 IamIron-Man 阅读(188) 评论(0) 推荐(0)
摘要: 线段树专题 参考如下链接的线段树代码风格:https://blog.csdn.net/qq_25605637/article/details/46967529 A - 基础线段树求和单点修改单点询问 A - 敌兵布阵 C++(AC) #include<iostream> #include<ioman 阅读全文
posted @ 2020-08-03 22:21 IamIron-Man 阅读(167) 评论(0) 推荐(0)
摘要: 杭电多校第三场 D-不相交线段最多 Problem D. Tokitsukaze and Multiple Tokitsukaze has a sequence of length n, denoted by a. Tokitsukaze can merge two consecutive elem 阅读全文
posted @ 2020-08-02 23:42 IamIron-Man 阅读(219) 评论(0) 推荐(0)