题目链接:http://codeforces.com/problemset/problem/580/B 某人有n个朋友,这n个朋友有钱数m和关系s两个属性。问如何选择朋友,使得这些朋友之间s最大差距小于d并且钱数是最多。 可以用滑动窗口,将m从小到大,s从大到小排列,这时在一个队列里维护队首和队尾, ...
分类:
其他好文 时间:
2016-04-18 20:46:16
阅读次数:
173
Oil Deposits Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with ...
分类:
其他好文 时间:
2016-04-16 22:53:18
阅读次数:
337
Problem Description The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.The floor ...
分类:
其他好文 时间:
2016-04-15 20:15:48
阅读次数:
177
interface ClassName{ String getClassName(); } class Company implements ClassName{ public String getClassName(){ return "Company"; } } public class Tes ...
分类:
编程语言 时间:
2016-04-15 14:04:42
阅读次数:
158
interface ClassName{ String getClassName(); } class Company implements ClassName{ public String getClassName(){ return "Company"; } } public class Tes ...
分类:
编程语言 时间:
2016-04-15 13:57:30
阅读次数:
145
interface ClassName{public String getClassName();}class Company implements ClassName{public String getClassName(){return "Company";}}public class per0 ...
分类:
编程语言 时间:
2016-04-14 22:29:13
阅读次数:
292
yii2中使用顶部导航的具体方法: 1.视图中调用两个类: use yii\bootstrap\Nav;use yii\bootstrap\NavBar; 2. <?php NavBar::begin([ 'brandLabel' => 'My Company', 'brandUrl' => Yii ...
分类:
其他好文 时间:
2016-04-14 22:09:44
阅读次数:
217
K-th Number Description You are working for Macrohard company in data structures department. After failing your previous task about key insertion you ...
分类:
其他好文 时间:
2016-04-13 20:19:27
阅读次数:
213
Network Description A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integ ...
分类:
Web程序 时间:
2016-04-12 01:49:21
阅读次数:
220
Problem Description
The Really Neato Calculator Company, Inc. has recently hired your team to help design their Super Neato Model I calculator. As a computer scientist you suggested to the company tha...
分类:
其他好文 时间:
2016-04-10 14:51:48
阅读次数:
153