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

1012只运行0ms就AC

Posted by 199003 at 2010-05-02 11:17:18 on Problem 1012
反正k的输入只有13种情况,我们可以在背地里把这13种情况算出来,并记录到一个数组里面。
再重新编写一个程序,每输入一个k,你就直接把k对应的数输出就行了,根本不需要时间计算。

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