摘要: 比赛地址 A - 软件工程 对于一条边$i\to j$ 最早的开始时间有递推关系$f[j]=max{f[i]+w[i]}$,正向跑一边DAG即可 最晚的开始时间有递推关系$g[i]=min{g[j]-w[i]}$,反向跑一边DAG即可 #include <cstdio> #include <iost 阅读全文
posted @ 2020-06-10 16:03 Byaidu 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 比赛地址 A - 第一章:小试牛刀 KMP板子 #include <iostream> #include <cstring> using namespace std; const int N=1e6+1; int i,j,ls,lp,nxt[N]; string s,p; int main() { 阅读全文
posted @ 2020-06-10 15:54 Byaidu 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 比赛地址 A - 红魔族首屈一指の恶魔使 栈 在最左端和最右端添加括号,保证中途的括号深度不小于零且左右括号数量相等 \(O(n)\) #include <cstdio> int T,n,dep,ans; int main() { scanf("%d",&T); while(T--) { scanf 阅读全文
posted @ 2020-05-28 17:57 Byaidu 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 问题分析 在动态调试程序的时候,用gdb调试到libc的时候能正确加载符号信息,但同样的程序用IDA调试到libc的时候却缺失了libc中的许多符号, 这其实是IDA没有正确加载DWARF调试信息(debuginfo)所导致的 根本原因是系统中没有对应的调试信息(可以装libc6-dbg),或是调试 阅读全文
posted @ 2020-04-19 02:48 Byaidu 阅读(3672) 评论(1) 推荐(1) 编辑
摘要: 随便输入个2333进去点击OK,弹窗提示Wrong serial number 在安装目录下找到exe 用dotPeek对其进行反编译,发现程序删去了符号信息,对字符串也进行了加密,提高了破解的难度 虽然在反编译代码里不能直接找到Wrong serial number,但是可以根据MessageBo 阅读全文
posted @ 2020-02-18 22:38 Byaidu 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 搭建虚拟机 按照题目要求,安装VM,下载Ubuntu64镜像,在虚拟机里直接执行文件即可得到Flag byaidu@ubuntu:~/ws$ ./movgcc cnss{H31l0,1inUx!!} Baby_string Flag在原程序中以明文存储,用IDA加载并按Shift+F12查看字符串即 阅读全文
posted @ 2019-11-13 19:16 Byaidu 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 感谢梁晖学长为了组织这场竞赛而做的努力 比赛地址 A 搜索2^15 #include <cstdio> #include <algorithm> #define ll long long using namespace std; ll n,x,d,s[16],c[16],ans=0; void df 阅读全文
posted @ 2019-09-22 14:31 Byaidu 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include <algorithm> #include <queue> #include <cstring> #define lowbit(x) (x&(-x)) using namespace std; typedef 阅读全文
posted @ 2017-11-08 00:31 Byaidu 阅读(468) 评论(0) 推荐(0) 编辑