F -StoneTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4764DescriptionTang and Jiang are good friends. To d...
分类:
其他好文 时间:
2014-11-25 00:16:19
阅读次数:
147
Description
My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are
coming to my p...
分类:
其他好文 时间:
2014-11-24 22:39:32
阅读次数:
243
Passage 1.Woodpecker 惹treat or trickThere are many apple trees in a garden. They’re good friends. One day an old tree is ill. There are many pests in ...
分类:
其他好文 时间:
2014-11-19 15:52:27
阅读次数:
163
B -Friends and PresentsTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 483BDescriptionYou have two f...
分类:
其他好文 时间:
2014-11-16 10:41:06
阅读次数:
141
并查集水题
有n个人,m队朋友,朋友的朋友,也是朋友,A与B是朋友,B与C是朋友,那么A与C也是朋友,即A,B,C在同一个并查集里,合并即可;
最后会有几个“朋友圈子”,求最大的朋友圈的人数。
#include
#include
#include
#include
using namespace std;
int r[30005];
int x[30010];
int init(int n...
分类:
其他好文 时间:
2014-11-14 22:48:36
阅读次数:
165