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 |
感觉这个读入还是比较简单的,推荐大家看看for(int i = 0; i < B; i++){ while(getchar() != '(') {} scanf("%d%d", &t1, &t2); Q[t1][++Q[t1][0]] = t2; Q[t2][++Q[t2][0]] = t1; while(getchar() != ')') {} } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator