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 FuckYouFuckingMe at 2012-03-27 15:44:04 on Problem 1722 and last updated at 2012-03-27 15:44:53
while 序列长度大于二 do
    if 序列第三个是+ then
        输出2
        删除序列第三个
    else
        输出1
        删除序列第二个
    end if
end while
输出1

注意最后输出的那个1!

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