注意这里n是电话数,电话数不超过1000代表人数不超过两千,。。。好坑。。。。时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueOne way that the police finds the head of a gang is t...
分类:
其他好文 时间:
2015-12-06 11:27:02
阅读次数:
289
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShuffling is a procedure used to randomize a deck of playing cards. Because standard shuffli...
分类:
系统相关 时间:
2015-12-06 11:26:44
阅读次数:
252
排队模型先把每个窗口的黄线排满如果还有人的话,前面完事儿一个插入一个。最后把每个队伍的人服务完。时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has N windows open for servic...
分类:
其他好文 时间:
2015-12-06 11:25:05
阅读次数:
235
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, football fans the world over were becoming increasingl...
分类:
其他好文 时间:
2015-12-06 11:24:19
阅读次数:
291
dfs使用vector保存最短路径时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA traveler's map gives the distances between cities along the highways, tog...
分类:
其他好文 时间:
2015-12-06 11:22:44
阅读次数:
327
比较复杂的dfs 注意算好到底需要send多少take back多少时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThere is a public bike service in Hangzhou City which prov...
分类:
其他好文 时间:
2015-12-06 11:22:36
阅读次数:
242
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is made up with N pos...
分类:
其他好文 时间:
2015-12-06 11:22:33
阅读次数:
173
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yue 去掉非法数据计算账单A long-distance telephone company charges its customers by the following rules:Ma...
分类:
其他好文 时间:
2015-12-06 11:21:15
阅读次数:
167
根据两种遍历方式建立二叉树层遍历二叉树时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers...
分类:
其他好文 时间:
2015-12-06 11:20:08
阅读次数:
168
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yue(二叉树建立方法)A Binary Search Tree (BST) is recursively defined as a binary tree which has the fo...
分类:
其他好文 时间:
2015-12-06 11:20:07
阅读次数:
371