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

纪念300!!!说下这题我感觉比较巧妙的思路!!!

Posted by lijingwei at 2011-08-15 16:08:09 on Problem 2613
像个队列一样,把该乘的放进一个数组,该除的放进一个数组,
然后ans初始为1,ans》=1的时候,就进行除,ans<1就乘,
注意有一个数组先遍历完的处理。我感觉这个思路很有意思。纪念300呵呵。。。

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