yes you are perfectly right
(...)
precompute on your home computer all the values that cause an overflow, and the correct answer for them. then your program check wether there are such values between i and j, and looks up the answers in a table if needed.
it would be too slow to manage large ...
Search found 4 matches
- Thu Nov 14, 2002 9:28 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 318193
- Sun Nov 10, 2002 11:53 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108876
[101 but not only] Executables
I think the worst thing about the online judge is that there are no public tests and nobody knows what exactly what's wrong with their programs.
Can anybody send me the executable of 101 so I could generate some tests that are wrong with my program? Please!
I think this would be a good idea if ...
Can anybody send me the executable of 101 so I could generate some tests that are wrong with my program? Please!
I think this would be a good idea if ...
- Sun Nov 10, 2002 5:53 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 318193
- Sun Nov 10, 2002 1:31 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 318193
[100] Wrong sulution was Accepted?
Some of these numbers when computing them with cardinal/longword in pascal - are wrong. There are about 100 of them (which exceed the limit of 2^32 during computation). One of my colegues sent the wrong program (with the cardinals) and it was accepted. For example he got 159487 -> 246 (in my opinion ...