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

注意括号嵌套,以及2组的数据~~

Posted by lolihunter at 2009-07-21 09:21:39 on Problem 1114
1.括号单一嵌套
input
2((((((((((((ABCDEFGHIJKLMOPQSTUVWXYZSiZn)2)2)2)2)2)2)2)2)2)2)2)2+(ABCDEFGHIJKLMOPQSTUVWXYZ)1808+Ar9
4
3Ar3+512Si16+256Zn32+100ABCDEFGHIJKLMOPQSTUVWXYZ100
3Ar3+512Si16+256Zn32+100A100+100B100+10Z1000+5Y2000+2X5000+100(EFGHIJKLMOPQSTUVW)100+C10000+10000D
3Ar3+512Si16+256Zn32+100A100+100B100+10Z1000+5Y2000+2X5000+100(EFGHJKLMOPQSTUVW)100+C10000+10000D
3Ar3+512Si16+256Zn32+100A100+100B100+10Z100+5Y2000+2X5000+100(EFGHIJKLMOPQSTUVW)100+C10000+10000D
output
2((((((((((((ABCDEFGHIJKLMOPQSTUVWXYZSiZn)2)2)2)2)2)2)2)2)2)2)2)2+(ABCDEFGHIJKLMOPQSTUVWXYZ)1808+Ar9!=3Ar3+512Si16+256Zn32+100ABCDEFGHIJKLMOPQSTUVWXYZ100
2((((((((((((ABCDEFGHIJKLMOPQSTUVWXYZSiZn)2)2)2)2)2)2)2)2)2)2)2)2+(ABCDEFGHIJKLMOPQSTUVWXYZ)1808+Ar9==3Ar3+512Si16+256Zn32+100A100+100B100+10Z1000+5Y2000+2X5000+100(EFGHIJKLMOPQSTUVW)100+C10000+10000D
2((((((((((((ABCDEFGHIJKLMOPQSTUVWXYZSiZn)2)2)2)2)2)2)2)2)2)2)2)2+(ABCDEFGHIJKLMOPQSTUVWXYZ)1808+Ar9!=3Ar3+512Si16+256Zn32+100A100+100B100+10Z1000+5Y2000+2X5000+100(EFGHJKLMOPQSTUVW)100+C10000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ak11Am13Ao15Aq17As19Au21Aw23Ay25
AaAb2Ac3Ad4Ae5Af6Ag7Ah8Ai9Aj10Ak11Al12Am13An14Ao15Ap16Aq17Ar18As19At20Au21Av22Aw23Ax24Ay25Az26==(AbAf3Aj5(AnAv)7Ar9Az11(Ax6At5Ap4Al3Ah2AdAzAv)2)2AaAc3Ae5Ag7Ai9Ak11Am13Ao15Aq17As19Au21Aw23Ay25Av4
AaAb2Ac3Ad4Ae5Af6Ag7Ah8Ai9Aj10Ak11Al12Am13An14Ao15Ap16Aq17Ar18As19At20Au21Av22Aw23Ax24Ay25Az26==(Af3(AnAv)7Ar9Az11(Ax6At5Ap4Al3Ah2AdAzAv)2)2AaAc3Ae5Ag7Ai9Ak11Am13Ao15Aq17As19Au21Aw23Ay25Av4Ab2Aj10




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