题目:Virtual FriendsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 329 Accepted Submission(s): 98 Problem DescriptionThese days, you can do all sort...
分类:
其他好文 时间:
2015-03-03 18:33:58
阅读次数:
176
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M
Angel's friends want to save Angel. Their task is: approach Angel. We assume that "approa...
分类:
其他好文 时间:
2015-03-03 11:49:06
阅读次数:
185
题意:GTY有n个朋友,站成一排,每个人有一个特征值ai。有m个询问。每次询问给两个数L,R。问你[L,R](即aL...aR)是否是1..(R-L+1)的一个全排列。是输出YES,否则输出NO思路:先判断是否segma(a[L,R])是否等于(R-L)*(R-L+1)/2。记录每一个ai上一次的位...
分类:
其他好文 时间:
2015-03-02 22:15:18
阅读次数:
175
DescriptionEmma and Eric are moving to their new house they bought after returning from their honeymoon. Fortunately, they have a few friends helping ...
分类:
其他好文 时间:
2015-03-02 20:57:17
阅读次数:
183
1.新浪微博Python SDK笔记——获取粉丝列表或关注列表http://www.tuicool.com/articles/VnQ3ye2.friendships/friends关注列表friendships/friends/bilateral双向关注列表friendships/followers...
分类:
其他好文 时间:
2015-02-26 18:01:05
阅读次数:
156
一些人互相是朋友(无向图连一条无向边),现在要添加一个推荐朋友的功能,如果对于x,有y,x与y不是朋友,但是y和x有共同的朋友,并且共同的朋友最多,那么y可以推荐给x。问对于每一个人,有多少人值得推荐。map映射后建图,然后用set_intersection()求交集这道题学习了一下set_inte...
分类:
其他好文 时间:
2015-02-23 19:01:14
阅读次数:
259
Problem Description
Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures in his small room, and he usually puts out his newest pictures to let his friends appreciate. but the result it can ...
分类:
编程语言 时间:
2015-02-23 09:45:09
阅读次数:
333
这是 Codeforces Round #292 (Div. 2)的一道题,原题在这里,题意就是:
小明有n个男同学(编号为 0 ~ n-1)和m个女同学 (编号为 0 ~ m-1),小明要安排男女之间约会,如何安排约会呢,假设时间是i (i >=0) ,小明在 i 天就邀请 i % n 号男同学,和 i % m 号女同学约会,如果男女同学之间有一个是快乐的,那么两个人都是快乐的,那么问题来了,...
分类:
移动开发 时间:
2015-02-22 06:49:28
阅读次数:
244
B. Drazil and His Happy Friends
time limit per test2 seconds
memory limit per test256 megabytes
inputstandard input
outputstandard output
Drazil has many friends. Some of them are happy and some o...
分类:
移动开发 时间:
2015-02-20 16:22:34
阅读次数:
281