Search found 96 matches
- Sat Sep 28, 2002 5:19 pm
- Forum: Pascal
- Topic: input problem
- Replies: 12
- Views: 14620
i think you should be careful about read and eof . example in this case after the last read there is still a newline char in the input, and eof will still return false, but the next read will raise an exception (that will cause runtime error if not caught) btw i'am not using pascal, but it's not rea...
- Sat Sep 28, 2002 6:59 am
- Forum: Volume 7 (700-799)
- Topic: 793 - Network Connections
- Replies: 102
- Views: 44116
- Tue Sep 24, 2002 2:06 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10358 - Matrix
- Replies: 9
- Views: 4214
- Tue Sep 24, 2002 1:31 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10301 - Rings and Glue
- Replies: 50
- Views: 21544
- Tue Sep 24, 2002 9:07 am
- Forum: Volume 103 (10300-10399)
- Topic: 10311 - Goldbach and Euler
- Replies: 98
- Views: 31750
- Tue Sep 24, 2002 7:33 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 293331
- Mon Sep 23, 2002 1:11 pm
- Forum: Volume 4 (400-499)
- Topic: 424 - Integer Inquiry
- Replies: 96
- Views: 35532
- Mon Sep 23, 2002 8:40 am
- Forum: Other words
- Topic: Integral cast
- Replies: 9
- Views: 3545
i think only negative non integer numbers cause a difference. so (int)sqrt(value) and (int)floor(sqrt(value)) shouldn't ever be different (in valid range). integer casting only cuts the decimals: (int)-1.5=-1, but floor returns the largest integer that is less than or equal to the value: (int)floor(...
- Sun Sep 22, 2002 8:45 am
- Forum: Volume 100 (10000-10099)
- Topic: 10098 - Generating Fast
- Replies: 62
- Views: 20251
- Sat Sep 21, 2002 12:49 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10322 - The Four in One Stadium
- Replies: 7
- Views: 3231
- Fri Sep 20, 2002 9:05 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10004 - Bicoloring
- Replies: 93
- Views: 42085
- Fri Sep 20, 2002 6:35 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10004 - Bicoloring
- Replies: 93
- Views: 42085
zyzyis: it's probably too late, but you clear re[] array with Init() at every test case. btw why are you saving the result in re[]? why not print it right away? henar2: you can fill the graph (starting from any node, coloring to color1), fill all neighbours to the other color (recursivly). during fi...
- Fri Sep 20, 2002 6:08 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10358 - Matrix
- Replies: 9
- Views: 4214
what if trinity's path is not shorter? she may still escape (first example below). this algorithm takes only a little closer to the solution (when you can escape for sure, because you are closer to a phone as any agent), but how do you solve the problem in all other cases? (how do you know if you ar...
- Fri Sep 20, 2002 12:31 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10342 - Always Late
- Replies: 25
- Views: 14319
- Fri Sep 20, 2002 8:25 am
- Forum: Other words
- Topic: compile error
- Replies: 10
- Views: 4471