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 wiltord at 2006-12-04 19:42:28 on Problem 3121
下面的输入,我最后一个operation输出的是1,和标准数据不同。
我把每一步的情况都打印出来了没发现问题。但很多人过了
这题??

输入:
==============================================================
1
49
PUSH
DUP
PUSH
ADD
ADD
DUP
DUP
DUP
DUP
DUP
DUP
INTERSECT
ADD
INTERSECT
DUP
DUP
UNION
ADD
UNION
DUP
DUP
UNION
DUP
DUP
INTERSECT
DUP
UNION
DUP
INTERSECT
UNION
DUP
DUP
UNION
PUSH
UNION
DUP
UNION
PUSH
UNION
DUP
DUP
DUP
DUP
DUP
DUP
PUSH
DUP
ADD
INTERSECT
==============================================================

每一步打印出来的stack:
==============================================================
PUSH: {}    
DUP: {}    {}    
PUSH: {}    {}    {}    
ADD: {}    {{}}    
ADD: {{}}    
DUP: {{}}    {{}}    
DUP: {{}}    {{}}    {{}}    
DUP: {{}}    {{}}    {{}}    {{}}    
DUP: {{}}    {{}}    {{}}    {{}}    {{}}    
DUP: {{}}    {{}}    {{}}    {{}}    {{}}    {{}}    
DUP: {{}}    {{}}    {{}}    {{}}    {{}}    {{}}    {{}}    
INTERSECT: {{}}    {{}}    {{}}    {{}}    {{}}    {{}}    
ADD: {{}}    {{}}    {{}}    {{}}    {{}, {{}}}    
INTERSECT: {{}}    {{}}    {{}}    {{}}    
DUP: {{}}    {{}}    {{}}    {{}}    {{}}    
DUP: {{}}    {{}}    {{}}    {{}}    {{}}    {{}}    
UNION: {{}}    {{}}    {{}}    {{}}    {{}}    
ADD: {{}}    {{}}    {{}}    {{}, {{}}}    
UNION: {{}}    {{}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
UNION: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
INTERSECT: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
UNION: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
INTERSECT: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
UNION: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
UNION: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
PUSH: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {}    
UNION: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
UNION: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
PUSH: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {}    
UNION: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    
PUSH: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {}    
DUP: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {}    {}    
ADD: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}}    
INTERSECT: {{}}    {{}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}, {{}}}    {{}}    

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