You are accumulating larger values of s in intenta as you try out
the different possibilities. I think your mistake is in assuming that
the smallest value for bottle movements is total - the largest value.
Just accumulate on the smallest value instead and forget the
subtraction from total idea.
Search found 4 matches
- Mon Mar 31, 2003 5:53 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116796
- Sat Mar 29, 2003 11:58 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108908
rewrote them in C. worked for me!
I just ended up rewriting my solutions in C instead of Java. Makes
life much easier in a lot of ways given the wieird Java restrictions.
Seems my solutions were correct and there was something wrong
with Java. All is well except for the damnably high number of rejected
submissions.
There goes my ...
life much easier in a lot of ways given the wieird Java restrictions.
Seems my solutions were correct and there was something wrong
with Java. All is well except for the damnably high number of rejected
submissions.
There goes my ...
- Tue Mar 25, 2003 10:04 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108908
additonal information
This is really my first ever post and my first submissions to the
contest, so I would appreciate some pointers.
The rules on Java are really wierd, I hate having to change my
code and fold in the wierd subroutines I am importing from a util
class I keep around.
It makes me really think about doing ...
contest, so I would appreciate some pointers.
The rules on Java are really wierd, I hate having to change my
code and fold in the wierd subroutines I am importing from a util
class I keep around.
It makes me really think about doing ...
- Tue Mar 25, 2003 10:00 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108908
100 101 WA in Java
I am at a loss as to why my programs that I submitted give WA. I hope its nothing to do with the wierd Java restrictions. Shame that the system cannot tell me what the wrong and right input is !!!!
Here is the code for 100:
[java]
import java.io.IOException;
class Main {
static int countDigits ...
Here is the code for 100:
[java]
import java.io.IOException;
class Main {
static int countDigits ...