Problem Description Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at ...
分类:
其他好文 时间:
2017-03-08 20:24:13
阅读次数:
360
题意: 一条线上有n个人,每个人一个坐标值xi,每个人有一个最大行走速度vi,问如果要让这n个人走到线上某一个点,最少需要多少时间。 分析: 看起来是二分, 二分坐标。 二分区间变化的条件,一开始感觉是比较当前mid坐标左右人们用最快速度到达的平均时间, 后来具体写的时候感觉是比较当前mid坐标左右 ...
分类:
其他好文 时间:
2017-03-06 00:51:12
阅读次数:
218
A. Dasha and Stairs 保证a,b不同时为0,而且a 和 b 的绝对值不超过1即可。(心态崩了的我强行写出一个暴力,枚举了所有的情况。) code: B. Dasha and friends 对于两个跑道,分别计算出每个片段的长度。固定第一个跑道的起点,枚举第二个跑道的起点,看两个跑 ...
分类:
其他好文 时间:
2017-02-01 10:32:19
阅读次数:
174
Virtual Friends Virtual Friends Virtual Friends These days, you can do all sorts of things online. For example, you can use various websites to make v ...
分类:
其他好文 时间:
2017-01-12 21:15:05
阅读次数:
222
[root@hadoop01 ~]# ll total 156 drwxr-xr-x. 18 root root 4096 Jan 5 05:05 apps -rw-r--r--. 1 root root 156 Jul 24 21:47 common-friends.log drwxr-xr-x.... ...
分类:
系统相关 时间:
2017-01-06 14:19:39
阅读次数:
236
2016年12月31日 一、名词 名称:表示人的,东西的,地点的 1、戴帽子: 一般情况 前面加个冠词 a gril 一个女孩 the gril 这个女孩 a city the city a station the station 特殊情况: Steven Beijing Peking Univer ...
分类:
其他好文 时间:
2017-01-01 19:53:00
阅读次数:
238
http://www.slideshare.net/invalidname/core-midi-and-friends 31 of 31 http://www.slideshare.net/invalidname/core-midi-and-friends 31 of 31 http://www.s ...
分类:
其他好文 时间:
2017-01-01 11:43:21
阅读次数:
172
#你的目标是保护Reynaldo
#找到生命值最低的武士
deflowestHealthPaladin():
lowestHealth=99999
lowestFriend=None
friends=hero.findFriends()
forfriendinfriends:
iffriend.type!="paladin":
continue
iffriend.health<lowestHealthandfriend.health<friend.maxHeal..
分类:
其他好文 时间:
2016-12-28 19:21:42
阅读次数:
364
FROM ME: 之前在研究前端性能优化的时候,就有学习关于CSS中“善用CSS中的继承”。 原文:CSS Inheritance, The Cascade And Global Scope: Your New Old Worst Best Friends 译文:掘金翻译计划 我酷爱模块化设计。长期 ...
分类:
Web程序 时间:
2016-12-23 01:03:13
阅读次数:
416