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 |
因为如果while(gets(tree[n++])!=NULL)有可能n多加了1,例如最后有个空行什么的In Reply To:兄弟们啊,直接用快排,就几行代码,1782MS,水过!!!不过开始用while(gets(tree[n++])!=NULL);wa了我3次,改成while(gets(tree[n])!=NULL)n++;就ac了,为什么呀? Posted by:19910517 at 2009-08-19 18:28:18 因为如果while(gets(tree[n++])!=NULL)有可能n多了1 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator