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 |
未见有垃圾数据关键是要把逻辑处理好, 这段是关键: if(strcmp(str,"high") == 0 && n <= high) high = n-1; else if(strcmp(str,"low") == 0 && n >= low) low = n+1; n是猜的数,关键的地方在于n <= high 和 n >= low。。。。 我也是WA了几次,供后人参考。。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator