原题如下:
The only printer in the computer science students'union is experiencing an extremely heavy workload.Sometimes there are a hundred jobs in the printerqueue and you may have to wait
for hours t...
分类:
其他好文 时间:
2015-04-16 09:08:56
阅读次数:
183
17.Is there anyone who hasn't suffered for the secret love? We alwaysthink that love is very heavy, heavy and could be the heaviest thing inthe world....
分类:
其他好文 时间:
2015-04-10 13:03:52
阅读次数:
123
//这题和之前的2870题意相似,不过多了可以任意交换两列的功能
//先开始没看见能交换两列。。。结果裸的样例都没过,最后想了想//任意交换两列,那我们就可以直接对第i行第j列得到的cnt[i][j]
//这一行惊醒排序就可以了,其中cnt[i][j]表示前i行第j列有多少
//个相同的1,进行降序排序得到a[j],那么a[j]*j的最大值就是我
//们所要的答案,因为j前面的肯定是高于j的。
...
分类:
移动开发 时间:
2015-04-06 20:20:30
阅读次数:
155
Sicily题目分类· 【数据结构/图论】1310 Right-Heavy Tree 笛卡尔树相关,复杂度O(N)或O(NlogN)。·1426 Phone List 电话号码前缀检索,trie树相关。·1443 Printer Queue 基本队列操作。·1149 等价表达式 判断表达式是否等价(...
分类:
其他好文 时间:
2015-03-31 12:17:34
阅读次数:
182
Description Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man w...
分类:
其他好文 时间:
2015-03-15 00:44:19
阅读次数:
154
DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping ...
分类:
编程语言 时间:
2015-03-07 09:03:43
阅读次数:
160
链接:click here
题意:
描述 You want to processe a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order. Then how many times it nee...
分类:
编程语言 时间:
2015-02-25 21:10:08
阅读次数:
153
/*
题意:
给你一个矩阵,里面的数字只有0和1两种,其中,列可以任意移动。问如何移动可以使某个子矩阵中元素全部是1,求出这个最大子矩阵的面积。
对每一行进行处理然后再叠加,到每一行用num[i]记下到这一行有多少个1
例如:
1 0 1 1 num[i]的记录就是: 1 0 1 1
1 0 0 1 ...
分类:
移动开发 时间:
2015-02-09 16:05:47
阅读次数:
195
In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order. For the input sequence
9 1 0 5 4 ,
...
分类:
编程语言 时间:
2015-02-06 09:38:14
阅读次数:
168
uva 331 Mapping the Swaps
Sorting an array can be done by swapping certain pairs of adjacent entries in the array. This is the fundamental technique used in the well-known bubble sort. If we li...
分类:
移动开发 时间:
2015-02-02 18:07:12
阅读次数:
179