码迷,mamicode.com
首页 >  
搜索关键字:strange sorting    ( 1127个结果
leetcode 664. Strange Printer
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
bzoj 1697: [Usaco2007 Feb]Cow Sorting牛排序
Description 农夫JOHN准备把他的 N(1 <= N <= 10,000)头牛排队以便于行动。因为脾气大的牛有可能会捣乱,JOHN想把牛按脾气的大小排序。每一头牛的脾气都是一个在1到100,000之间的整数并且没有两头牛的脾气值相同。在排序过程中,JOHN 可以交换任意两头牛的位置。因为 ...
分类:编程语言   时间:2017-09-01 09:47:06    阅读次数:98
Codeforce842D Vitya and Strange Lesson
题意:一个序列(n<3e5),m个查询,每次序列所有的数亦或x,问这个序列的mex(mex定义是最小没有出现过的非负整数),保留每一次的更改 ...
分类:其他好文   时间:2017-09-01 00:01:43    阅读次数:163
CF 843 A. Sorting by Subsequences
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
CodeForces - 844C Sorting by Subsequences (排序+思维)
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
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
Codeforces 832C - Strange Radiation
832C - Strange Radiation 思路:二分最短时间。 代码: ...
分类:其他好文   时间:2017-08-24 13:37:00    阅读次数:215
Codeforces 605A. Sorting Railway Cars
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
ACM Strange fuction
现在,这里有一个功能: 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
E - A strange lift 【BFS】
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
1127条   上一页 1 ... 33 34 35 36 37 ... 113 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!