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

Re:我来说一下几种不可能的情况:如下:

Posted by zrO_Orz at 2008-10-19 08:43:09 and last updated at 2008-10-19 08:43:58
In Reply To:能不能给几个测试数据?我能想到的都过了 Posted by:fans at 2008-10-18 22:56:29
1:N为偶数不可能.
2:N为奇数时,N%2==0位的字符串一定是数字,N%2==1位时的字符串一定是操作符.
3:根据首位就能判断是数字还是操作符
4:可以不用栈,因为只有两个操作符,且没有括号.可以先算*,再算+

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