题目链接:hdu_5874_Friends and Enemies 题意: 有nn个人, mm种颜色的石头, 人两两之间要么是朋友, 要么是敌人. 每个人可以携带若干种石头或者不带, 要求朋友之间至少携带一种颜色相同的石头, 敌人之间不能携带有相同颜色的石头. 问最坏情况下, mm种颜色是否够. 题 ...
分类:
其他好文 时间:
2016-09-10 20:49:59
阅读次数:
298
Two Teams Time limit: 1.0 secondMemory limit: 64 MB The group of people consists of N members. Every member has one or more friends in the group. You ...
分类:
其他好文 时间:
2016-09-07 17:46:02
阅读次数:
184
枚举,二分,$RMQ$。 对于一个序列来说,如果固定区间左端点,随着右端点的增大,最大值肯定是非递减的,最小值肯定是非递增的。 因此,根据这种单调性,我们可以枚举区间左端点$L$,二分找到第一个位置${{p_1}}$,使得$\mathop {\max }\limits_{i = L}^{{p_1}} ...
分类:
其他好文 时间:
2016-09-04 14:15:57
阅读次数:
163
题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=5437 Problem Description Princess Alisha invites her friends to come to her birthday party. Each ...
分类:
其他好文 时间:
2016-09-02 20:17:26
阅读次数:
198
A friend without faults will never be found. 没有缺点的朋友是永远找不到的。 You can't find a friends without faults, and you can't find a lover without faults. In pe ...
分类:
其他好文 时间:
2016-08-31 23:51:14
阅读次数:
169
【微信网页版】: [查看被删的微信好友]https://github.com/0x5e/wechat-deleted-friends [网页版微信API,包含终端版微信及微信机器人]https://github.com/Urinx/WeixinBot [Mac版网页版微信]https://githu ...
分类:
其他好文 时间:
2016-08-29 06:54:20
阅读次数:
172
11722 Joining with FriendYou are going from Dhaka to Chittagong by train and you came to know one of your old friends is goingfrom city Chittagong to ...
分类:
其他好文 时间:
2016-08-28 21:04:30
阅读次数:
194
原题链接 Problem Description There are n people and m pairs of friends. For every pair of friends, they can choose to become online friends (communicating ...
分类:
其他好文 时间:
2016-08-27 22:02:22
阅读次数:
180
1、终端运行 react-native init 项目名称 (如果已经搭建项目,此步骤忽略) 2、进入到你的项目下运行 npm i --save skellock/react-native-maps#friends-with-30 3、然后运行 rnpm link 4、再进入到 ios 目录下运行 ...
分类:
其他好文 时间:
2016-08-27 20:40:59
阅读次数:
419