| ||||||||||
| 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 | |||||||||
终于明白为什么WA了拿大家提供的数据试都无济于事,终于知道为什么WA了~
说到底还是因为自己逻辑不严密~
提供一小段给迷路中的朋友:
scanf("%s%s",buf,reply);
if(!strcmp(reply,"high")){
if(value_guess<=high)
high=value_guess-1;
}
else if(!strcmp(reply,"low")){
if(low<=value_guess)
low=value_guess+1;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator