Search found 37 matches
- Sat Jan 14, 2006 5:39 am
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59973
I've been debugging the code now in Linux and noticed that if I pre-calculated the numbers untill 4700th it worked okay but then if I tried 4800 (I increase 100 numbers in each try so I don't know the correct value) it crashed :-? I laso tried to increse the digits numbers by 1000 (2100 digits total ...
- Thu Jan 12, 2006 8:45 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10508 - Word Morphing
- Replies: 35
- Views: 15531
You have to return -1 for "smaller than", 0 for "equals to" and 1 for "greater than", so to sort in an ascending order a must be smaller than b and in an descending order b must be smaller than a. See this example, hope it helps 

- Thu Jan 12, 2006 8:39 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59973
- Thu Jan 12, 2006 6:51 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59973
- Thu Jan 12, 2006 3:11 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59973
- Tue Jan 10, 2006 3:22 pm
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 48083
- Tue Jan 10, 2006 2:35 pm
- Forum: Volume 4 (400-499)
- Topic: 484 - The Department of Redundancy Department
- Replies: 103
- Views: 20376
- Tue Jan 10, 2006 2:50 am
- Forum: Volume 4 (400-499)
- Topic: 484 - The Department of Redundancy Department
- Replies: 103
- Views: 20376
I'm getting WA but I tested my code for negative/zero/positive numbers and also with space and newlines.
Any help is appreciated, thank you.
Code: Select all
code AC :P
}
- Mon Jan 09, 2006 3:48 pm
- Forum: Volume 4 (400-499)
- Topic: 494 - Kindergarten Counting Game
- Replies: 119
- Views: 37252
- Mon Jan 09, 2006 2:56 pm
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 64411
This is weird, the main change you did was to not test when it was the last wave and print the newline anyway (I kept the the multiple inputs) and of course to simplify the code that was really messy lol but the thing is I had outputs that were equals to the now AC code :o I thought maybe it would ...
- Mon Jan 09, 2006 5:36 am
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 64411
- Mon Jan 09, 2006 5:23 am
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 48083
- Mon Jan 09, 2006 2:04 am
- Forum: Volume 105 (10500-10599)
- Topic: 10530 - Guessing Game
- Replies: 57
- Views: 36903
- Sun Jan 08, 2006 5:27 pm
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 64411
- Sun Jan 08, 2006 2:31 pm
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 64411