Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

在OWB的帮助下AC~了.......=。=

Posted by huangzhengdoc at 2015-05-31 11:47:14 on Problem 1655
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator