Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

请教一个问题,这样两种写法有什么区别吗?

Posted by Gyber at 2011-05-10 19:32:43 on Problem 2488
            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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator