码迷,mamicode.com
首页 >  
搜索关键字:gtys gay friends    ( 1079个结果
POJ 3119 Friends or Enemies?
先预处理得到各个编号的点的位置再判断 点在二元一次方程的上方还是下方#include #include #include #include #include #include #include #include #include #include using namespace std; #define MAXN 11111 #include #include struct ...
分类:其他好文   时间:2014-08-02 20:56:44    阅读次数:241
POJ2923:Relocation(状态压缩+01)
Description Emma and Eric are moving to their new house they bought after returning from their honeymoon. Fortunately, they have a few friends helping them relocate. To move the furniture, they onl...
分类:其他好文   时间:2014-08-02 18:26:23    阅读次数:312
These Bags Are Also Good From The Point Of View Of Tourism
Shoulder bags are very nice to have, it can be fun and funky if you use it in the right clothes. It can also be a great gift to give your friends some...
分类:其他好文   时间:2014-08-01 12:52:31    阅读次数:219
UVA 10608 Friends
树。。集合合并。。...
分类:其他好文   时间:2014-07-31 17:17:16    阅读次数:271
POJ 3169 Layout (差分约束+SPFA)
LayoutTime Limit:1000MSMemory Limit:65536KTotal Submissions:6832Accepted:3292DescriptionLike everyone else, cows like to stand close to their friends ...
分类:其他好文   时间:2014-07-30 23:50:55    阅读次数:317
Python 获取Twitter用户与Friends和Followers的关系(eg, 交集,差集)
Python 获取Twitter用户与Friends和Followers的关系(eg, 交集,差集)...
分类:编程语言   时间:2014-07-30 07:41:03    阅读次数:272
HDU 1213 How Many Tables 并查集
这是一道简单的并查集的题目,跟UVA 10608 Friends 差不多。 对于统计桌子的数目,我用了两种方法: 1、先将桌子数目初始化为n,然后合并一次就减一张。 2、先将朋友们分好组,在统计 fa[i]=i 的这些根节点有多少即为所求的桌子数。...
分类:其他好文   时间:2014-07-29 18:10:42    阅读次数:213
Python 获取Twitter用户的所有的friends和followers
Python 获取Twitter用户的所有的friends和followers...
分类:编程语言   时间:2014-07-29 13:19:24    阅读次数:300
UVA 10608 Friends 并查集
题目链接:http://vjudge.net/problem/viewProblem.action?id=20432 题目大意:朋友的朋友是朋友,求人数最多的那帮家伙有多少人。 我刚开始真尝试了一遍的一步一步用数组模拟搜索,拼接······,果断超时了,下次不干那么无聊的事了,明明有好算法,干嘛还暴力呢?#include int fa[30001],tot[30001]; int find(int u) { fa[u]==u?u:fa[u]=find(fa[u]); return fa...
分类:其他好文   时间:2014-07-29 13:06:37    阅读次数:227
ACM训练二B题
这是比赛后打的题目,思路很清晰:申明一个结构体,将输入的数复制在这个结构体数组中,排序后比对下标,找到变动的首下标和尾下标,再看这段是否逆序了。Being a programmer, you like arrays a lot. For your birthday, your friends hav...
分类:其他好文   时间:2014-07-29 11:59:56    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!