There is a strange printer with the following two special requirements: Given a string consists of lower English letters only, your job is to count th ...
分类:
其他好文 时间:
2017-09-02 15:32:00
阅读次数:
125
Description 农夫JOHN准备把他的 N(1 <= N <= 10,000)头牛排队以便于行动。因为脾气大的牛有可能会捣乱,JOHN想把牛按脾气的大小排序。每一头牛的脾气都是一个在1到100,000之间的整数并且没有两头牛的脾气值相同。在排序过程中,JOHN 可以交换任意两头牛的位置。因为 ...
分类:
编程语言 时间:
2017-09-01 09:47:06
阅读次数:
98
题意:一个序列(n<3e5),m个查询,每次序列所有的数亦或x,问这个序列的mex(mex定义是最小没有出现过的非负整数),保留每一次的更改 ...
分类:
其他好文 时间:
2017-09-01 00:01:43
阅读次数:
163
A. Sorting by Subsequences You are given a sequence a1,?a2,?...,?an consisting of different integers. It is required to split this sequence into the m ...
分类:
其他好文 时间:
2017-08-29 14:17:28
阅读次数:
180
You are given a sequence a1,?a2,?...,?an consisting of different integers. It is required to split this sequence into the maximum number of subsequenc ...
分类:
编程语言 时间:
2017-08-25 21:01:04
阅读次数:
780
843A - Sorting by Subsequences 还好之前了解过一点白书上的permutation! 我写的递归,其实很容易直接写成递推啊 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+10; ...
分类:
其他好文 时间:
2017-08-25 11:04:49
阅读次数:
224
832C - Strange Radiation 思路:二分最短时间。 代码: ...
分类:
其他好文 时间:
2017-08-24 13:37:00
阅读次数:
215
An infinitely long railway has a train consisting of n cars, numbered from 1 to n (the numbers of all the cars are distinct) and positioned in arbitra ...
分类:
其他好文 时间:
2017-08-24 10:41:14
阅读次数:
145
现在,这里有一个功能: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100) 当x在0到100之间时,你能找到最小值吗? 输入 第一行包含一个整数T(1 < = T < = 100),这意味着测试用例的数量。然后T行,每一行只有一个实数Y。(0 < ...
分类:
其他好文 时间:
2017-08-24 01:12:30
阅读次数:
218
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two ...
分类:
其他好文 时间:
2017-08-21 20:39:12
阅读次数:
152