Search found 3 matches

by chulin nagasaki
Sat Jul 22, 2006 9:55 pm
Forum: Volume 5 (500-599)
Topic: 562 - Dividing coins
Replies: 73
Views: 44317

AC. I changed

[c]
for (i = 1; i <= sum; i++)
if (possible && ABS(2 * i - sum) < min)
min = ABS(2 * i - sum);
[/c]

to this:

[c]
for (i = 0; i <= sum; i++)
if (possible && ABS(2 * i - sum) < min)
min = ABS(2 * i - sum);
[/c]

Basically the problem is that the problem statement says that ncoins ...
by chulin nagasaki
Mon Jun 26, 2006 6:42 pm
Forum: Volume 105 (10500-10599)
Topic: 10523 - Very Easy !!!
Replies: 63
Views: 32261

10523-WA PLEASE Which the correct answer for this test case?

It is strange because I used DP to calculate the results, and the answers are the same to the of previous topics. Could then anybody give the answer of that test case?


100 10
150 15
150 1
130 0
150 14
141 9
13 13


Here it is my output ...
by chulin nagasaki
Thu May 11, 2006 2:10 pm
Forum: Volume 2 (200-299)
Topic: 263 - Number Chains
Replies: 45
Views: 15468

263... CLarification. HELP ME PLS

Would that imput be valid? Which would the output be for this imput?
192
00192
55694
what does he mean with "Note that 0 is a permitted digit"?

I GOT MANY WA
THANKS FOR ADVANTAGE

Go to advanced search