| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
在OWB的帮助下AC~了.......=。=#include<cstdio>
#include<cstring>
using namespace std;
struct node
{
int x,y,next;
};
node a[42000];int len,frist[21000];
void ins(int x,int y)
{
len++;a[len].x=x;a[len].y=y;
a[len].next=frist[x];frist[x]=len;
}
//下面自己想
int tot[21000],n,tmproot,tmpsize;
int findroot(int x,int f)
{
//????????
}
int main()
{
int t;
scanf("%d",&t);
for(int ti=1;ti<=t;ti++)
{
//???????
tmpsize=9999999;
findroot(1,0);
printf("%d %d\n",tmproot,tmpsize);
}
}
核心自己来,发了,=。=靠你自己了.....
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator