Search found 2 matches

by Minerva
Sat Jan 01, 2005 9:09 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 26206

I have found the mistake !!! If the input is : 5 6 7 8 9 12 5 10 22 3 4 12 0 My AC program's output is : 5! = 3 1 1 6! = 4 2 1 7! = 4 2 1 1 8! = 7 2 1 1 9! = 7 4 1 1 12! = 10 5 2 1 1 5! = 3 1 1 10! = 8 4 2 1 22! = 19 9 4 3 2 1 1 1 3! = 1 1 4! = 3 1 12! = 10 5 2 1 1 But ur's output is : 5! = 3 1 1 6!...
by Minerva
Fri Dec 31, 2004 6:19 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 26206

I run ur program on my PC, I found that ur program can't output the answer, and I also think the solution to the problem is very easy ---- just creat a prime list ---- prime[num_prime] and define an integer array to record the num ---- sum[num_prime], then do as the following things: int point = 0; ...

Go to advanced search