题目要求 A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcod ...
分类:
其他好文 时间:
2019-02-07 23:54:35
阅读次数:
318
题目要求 Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and colum ...
分类:
其他好文 时间:
2019-02-05 10:37:29
阅读次数:
192
果然abc都是手速场。 倒序开的qwq。 D题因为忘记1e12二进制几位上界爆了一发。 A Entrance Examination 就是除一下就行了。。。 看样例猜题意系列。 B Polygon 他都把定理给你了。。。 你直接按他的意思模拟就好,数组都不用开 cpp include int mai ...
分类:
其他好文 时间:
2019-02-03 22:10:44
阅读次数:
246
题目要求 Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some ar ...
分类:
其他好文 时间:
2019-02-03 10:42:23
阅读次数:
195
题目要求 On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = grid[i][j] represents a tower of v ...
分类:
其他好文 时间:
2019-02-02 10:33:48
阅读次数:
205
题目要求 Given an n-ary tree, return the postorder traversal of its nodes' values. 题目分析及思路 题目给出一棵N叉树,要求返回结点值的后序遍历。可以使用递归的方法做。因为是后序遍历,所以最后加入根结点的值。 python代码 ...
分类:
其他好文 时间:
2019-02-01 16:24:16
阅读次数:
168
题目要求 Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node's value equals the given value. ...
分类:
其他好文 时间:
2019-01-31 13:17:33
阅读次数:
163
写点东西记录一下,方便以后查看。 http://ctf.bugku.com/challenges web2: 签到题,花里胡哨的果断去看源码。。。。。 计算器: 发现只能输入一个数字,肯定是对提交的内容做了长度限制,打开开发者工具把长度改一下(如果好运的话如图就直接出结果) web基础$_GET: ...
分类:
Web程序 时间:
2019-01-30 01:28:11
阅读次数:
216
AT1219 歴史の研究 题意 给定一个长为$n$的序列$\{a\}$,询问区间$a cnt_a$的最大值,即某个值乘上出现次数 回退莫队板子 只右移右指针和左指针每次回到块结尾即可。 Code: cpp include include include include define ll long ...
分类:
其他好文 时间:
2019-01-28 22:21:51
阅读次数:
216
恢复内容开始 题目描述 假设以最美观的方式布置花店的橱窗,有F束花,每束花的品种都不一样,同时,至少有同样数量的花瓶,被按顺序摆成一行,花瓶的位置是固定的,并从左到右,从1到V顺序编号,V是花瓶的数目,编号为1的花瓶在最左边,编号为V的花瓶在最右边,花束可以移动,并且每束花用1到F的整数惟一标识,标 ...
分类:
其他好文 时间:
2019-01-28 21:46:38
阅读次数:
200