<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,u ...
分类:
编程语言 时间:
2019-09-16 09:37:05
阅读次数:
69
给定 $n$ 个两两不同的正整数 $a_1, a_2, \dots, a_n$,$a_i Let the length of a number be the number of digits needed to write it out in binary, excluding any leadin ...
分类:
其他好文 时间:
2019-09-16 09:31:57
阅读次数:
74
<Window x:Class="WpfApp53.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20... ...
CF888E Maximum Subsequence 有一种叫做折半搜索的好东西 我们把数列劈成两半,分别搜索,再合并 合并可以排序+二分或者排序+单调性 代码极短 ...
分类:
其他好文 时间:
2019-09-15 16:48:18
阅读次数:
85
题目如下: You have an infinite number of stacks arranged in a row and numbered (left to right) from 0, each of the stacks has the same maximum capacity. I ...
分类:
其他好文 时间:
2019-09-14 22:40:06
阅读次数:
116
1、String Value 起始值 2、递增:步长 3、Maximum value:最大值 4、引用名称:变量名 5、与每用户独立的跟踪计数器 :如果勾选,每个用户都单独计数 ...
分类:
其他好文 时间:
2019-09-14 16:49:51
阅读次数:
70
2019 ICPC Universidad Nacional de Colombia Programming Contest C D J C. Common Subsequence 题意:给出长度为n两个串,求两个串的最长公共子序列len,如果len>=0.99*n,两个串就是亲兄弟否则不是。 解法 ...
分类:
其他好文 时间:
2019-09-14 13:56:28
阅读次数:
82
//poj 1458 Common Subsequence Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 69884 Accepted: 29304 Description A subsequence of a given se... ...
分类:
其他好文 时间:
2019-09-14 00:37:28
阅读次数:
97
[徐州网络赛]Longest subsequence 可以分成两个部分,前面相同,然后下一个字符比对应位置上的大。 枚举这个位置 用序列自动机进行s字符串的下标转移 注意最后一个字符 c++ include const int maxn = 1e6 + 7; using namespace std; ...
分类:
其他好文 时间:
2019-09-13 13:48:22
阅读次数:
89
Leetcode之分治法专题-654. 最大二叉树(Maximum Binary Tree) 给定一个不含重复元素的整数数组。一个以此数组构建的最大二叉树定义如下: 通过给定的数组构建最大二叉树,并且输出这个树的根节点。 示例 : 提示: 分别找l到r区间里的最大值,然后再构造其左右的子树就ok了。 ...
分类:
其他好文 时间:
2019-09-13 11:03:27
阅读次数:
112