码迷,mamicode.com
首页 >  
搜索关键字:gtys gay friends    ( 1079个结果
(hdu step 5.1.6)Virtual Friends(在结点为名字结点的条件下,求并查集的节点数)
题目: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
ZOJ 1649 && HDU 1242 Rescue (BFS + 优先队列)
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
hdu 5172 GTY's gay friends(线段树最值)
题意: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
【POJ 2923】Relocation
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
获取weibo用户所有的关注列表
1.新浪微博Python SDK笔记——获取粉丝列表或关注列表http://www.tuicool.com/articles/VnQ3ye2.friendships/friends关注列表friendships/friends/bilateral双向关注列表friendships/followers...
分类:其他好文   时间:2015-02-26 18:01:05    阅读次数:156
Codeforces 245G Suggested Friends - 交集set_intersection()
一些人互相是朋友(无向图连一条无向边),现在要添加一个推荐朋友的功能,如果对于x,有y,x与y不是朋友,但是y和x有共同的朋友,并且共同的朋友最多,那么y可以推荐给x。问对于每一个人,有多少人值得推荐。map映射后建图,然后用set_intersection()求交集这道题学习了一下set_inte...
分类:其他好文   时间:2015-02-23 19:01:14    阅读次数:259
hdu 1162 Eddy's picture 最小生成树入门题 Prim+Kruskal两种算法AC
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
B. Drazil and His Happy Friends
这是 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
CodeForces515B Drazil and His Happy Friends (数学)
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
1079条   上一页 1 ... 70 71 72 73 74 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!