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 |
Re:感觉这个读入还是比较简单的,推荐大家看看In Reply To:感觉这个读入还是比较简单的,推荐大家看看 Posted by:Gamor at 2009-08-05 16:26:03 > 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() != ')') {} > } 直接scanf("%*[^(](%d %d)",&u,&v); Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator