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:终于AC了,可是还是不明白,为什么输入0要输出“NO”可是是输入4却要输出“YES”,0=0!,4=2!+1!+0!呀!!!

Posted by samesokko2 at 2006-11-04 15:21:51 on Problem 1775
In Reply To:Re:终于AC了,可是还是不明白,为什么输入0要输出“NO”可是是输入4却要输出“YES”,0=0!,4=2!+1!+0!呀!!! Posted by:zhuxu at 2006-10-27 06:15:36
> 那为什么9!=1!+2!+3!而不加0!,产生'no'啊??
For a given n, you'll check if there are some xi, and let n equal to 
Σ(1<=i<=t)xi!. (t >=1 1, xi >= 0, xi = xj iff. i = j). 
x1, x2...xt是任意的可以是3,2,....5

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