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 gzw_02 at 2008-07-24 22:03:11 on Problem 3295
这种方法有点麻烦,自己想的。

首先预处理,将N去掉。
剩下的就全部是二元前缀运算符了。
可以递归分左右子树计算。

想请教一下更简便的方法,例如怎样用栈运算呢?

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