LCT 42行模板。但是我主要凭记忆打的,没有对std,所以可能有的地方错了。回来要对一下std。 注意4个up,分别是rotate,splay,access,cut. (uo维护链上信息,link不会合为一条链,所以不用up). 19,10,04. #include<bits/stdc++.h> ...
分类:
其他好文 时间:
2019-10-04 23:14:04
阅读次数:
110
晚上做几个简单的ctf逆向睡的更好 logmein elf文件 ida看看main函数伪代码 这里要看懂他的算法: 看到19行sacnf接收输入 然后v3为输入的长度v3 < strlen(v8)调用sub_4007C0函数传入v8 sub_4007C0: 接着看sub_4007F0 函数看完 26 ...
分类:
其他好文 时间:
2019-10-04 23:03:19
阅读次数:
285
题解 P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows "题目链接" ~~数据规模16 20的都是状压~~ 如果要每一位都压序号的话空间肯定是不够的,所以每一位只能是0或1。1表示有这头牛,0表示没有这头牛。显然每个位置的选择和他两边的牛有关,所以我们就可以定义这样的状态: ...
分类:
其他好文 时间:
2019-10-04 17:06:53
阅读次数:
72
https://codeforces.com/problemset/problem/1000/B 题意: 一个模拟思维题。就是有一盏灯,0时刻开着。n次操作,你可以在其中加入一次操作(或者不加),操作为:a[i]时刻按一下开关,状态变为相反状态(开->关or关->开)。问灯亮着的时长最长为多少? 样 ...
分类:
其他好文 时间:
2019-10-03 20:11:34
阅读次数:
64
112. Path Sum Easy Easy Easy Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the ...
分类:
其他好文 时间:
2019-10-03 16:18:59
阅读次数:
72
题目翻译: 有编号为1-N号的N个人,他们都记得“自己左边排队的人数和自己右边排队的人数之差的绝对值”,根据他们的报告,给你i的「自己的左排列的人数和自己的右排列的人数的差的绝对值」Ai。 请根据他们的报告,求出原来的排列方法有几种。但是,因为答案有时候会变得很大,请对10^9+7取模 。另外,他们 ...
分类:
其他好文 时间:
2019-10-03 00:53:02
阅读次数:
93
Running a taxi station is not all that simple. Apart from the obvious demand for a centralised coordination of the cabs in order to pick up the custom ...
分类:
其他好文 时间:
2019-10-02 17:06:07
阅读次数:
99
1、Ctrl+Alt+Left/Right 光标定位到上一个/下一个浏览位置处; 2、Ctrl+Shift+Backspace 光标定位到上次修改的地方; 3、Alt+Up/Down 移动光标到上一个/下一个方法开始处; 4、Ctrl+Left/Right 移动光标到前一个/后一个单词处,加Shif ...
分类:
其他好文 时间:
2019-10-02 01:05:48
阅读次数:
188
安装prisma1npm i -g prisma1prisma init db //初始化prima选择数据库 Set up a new Prisma server or deploy to an existing server? (Use arrow keys) Set up a new Pris... ...
分类:
数据库 时间:
2019-10-01 13:38:42
阅读次数:
112
107. Binary Tree Level Order Traversal II Easy Easy Easy Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, fr ...
分类:
其他好文 时间:
2019-10-01 12:19:17
阅读次数:
104