| ||||||||||
| 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(head>=0)
cout<<char(stack[head--]+'A'-1)<<stack[head--];
cout<<endl;
while(head>=0)
{
cout<<char(stack[head]+'A'-1);
head--;
cout<<stack[head];
head--;
}
我觉得没有区别啊,但是前者是WA,后者却是AC.
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator