Search found 37 matches

by CMG
Mon Dec 31, 2007 8:32 am
Forum: Volume 103 (10300-10399)
Topic: 10300 - Ecological Premium
Replies: 22
Views: 8034

shouldn't it be:

Code: Select all

int main() {
     ....
     return 0;
}
by CMG
Mon Dec 31, 2007 6:26 am
Forum: Volume 113 (11300-11399)
Topic: 11376 - Tilt!
Replies: 40
Views: 9123

Thanks for the article. Always nice to learn something new, not the greatest expert in CS. More of a hobby :)
by CMG
Mon Dec 31, 2007 5:39 am
Forum: Volume 113 (11300-11399)
Topic: 11376 - Tilt!
Replies: 40
Views: 9123

Interesting read on wiki. Ill see if I can't figure out how to implement such a system. If not I might have to ask for some more help :)
by CMG
Mon Dec 31, 2007 3:27 am
Forum: Volume 113 (11300-11399)
Topic: 11376 - Tilt!
Replies: 40
Views: 9123

Ok that makes some sense, but then how do you check that at a certain point its worthwhile to continue on, or maybe I don't quite understand your algorithm.
by CMG
Mon Dec 31, 2007 1:36 am
Forum: Volume 113 (11300-11399)
Topic: 11376 - Tilt!
Replies: 40
Views: 9123

I went ahead and edited my post swaping the points on all inputs :o Guess that was one place I messed up in on reading the problem. Ill have to put more thought into saving states I just don't know exactly the best way to do it.
by CMG
Mon Dec 31, 2007 1:23 am
Forum: Volume 113 (11300-11399)
Topic: 11376 - Tilt!
Replies: 40
Views: 9123

The maze for the first case is as follows. Is (5,9) in reference from 0 to N-1 or 1 to N? Cause I looked over a few of the last encoded lines and they look good. _____________________________________________________________ | | | | | | | X | X | X | | | | _____ | | | | | | X | | | _____ | _____ ____...
by CMG
Mon Dec 31, 2007 12:55 am
Forum: Volume 113 (11300-11399)
Topic: 11375 - Matches
Replies: 18
Views: 6969

Did you get it accepted cause I found another similar problem. When I tested your code it gave the right output for 6, but when I tried 6 again it added one to the number like so: 4 5 6 7 6 6 7 4 9 16 28 17 18 29 On a off topic note, It's kinda funny that my ANSI C submission got changed to a JAVA s...
by CMG
Sun Dec 30, 2007 11:59 pm
Forum: Volume 113 (11300-11399)
Topic: 11376 - Tilt!
Replies: 40
Views: 9123

Thanks for clarifying. I fixed the RTE, but with a case I found on the net my code takes way to much time to solve. It does fine with mazes with only a few blue squares but has trouble with a high amount of blue squares. If any of you have a tips on how to optimize the search I would love to hear it...
by CMG
Sun Dec 30, 2007 9:29 am
Forum: Volume 113 (11300-11399)
Topic: 11376 - Tilt!
Replies: 40
Views: 9123

This problem is quite interesting, but I keep getting RTE and have no clue where the problem is. Anyone provide good i/o? :x

EDIT: Question are the grids square? The problem doesn't exactly specify if the grid is a square one.
by CMG
Fri Dec 21, 2007 10:29 pm
Forum: Bugs and suggestions
Topic: Java validation time
Replies: 4
Views: 3214

Ive also noticed this. I have also noticed that for java it seems that the fastest program execution is 0.080 basically the time to initialize the JVM. Would there be any way to minus out the initialization time?
by CMG
Thu Dec 20, 2007 4:16 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31155

That output looks good to me. The only thing tricky about this problem is making sure not to print an empty line at for the very last triangle wave, and being able to print all of the triangle waves fast enough.
by CMG
Wed Dec 19, 2007 8:07 am
Forum: Volume 103 (10300-10399)
Topic: 10320 - Cow Trouble! Help Please!!
Replies: 27
Views: 10004

im not exactly sure myself at the moment, but from observation I found a good approximation for when R>(l+w): A = (pi*3*R^2)/4 + (pi*(R - l)^2)/4 + (pi*(R - w)^2)/4 - (pi*(R - l - w)^2)/4 = pi*(R^2 - l*w/2) which gives 238.76104 for the 5 2 9 case above. If I come up with anything better Ill post it.
by CMG
Wed Dec 19, 2007 1:49 am
Forum: Volume 109 (10900-10999)
Topic: 10922 - 2 the 9s
Replies: 38
Views: 14272

9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
sum1 = 819
sum2 = 18
sum3 = 9

therefore it has degree 3.
by CMG
Mon Dec 17, 2007 10:58 pm
Forum: Volume 109 (10900-10999)
Topic: 10922 - 2 the 9s
Replies: 38
Views: 14272

I think this should help you. Input: 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 360 564588669987 0 Output: 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 is a multiple of 9 and has 9-degree 3. 360 is a mult...
by CMG
Mon Dec 17, 2007 3:46 am
Forum: Volume 103 (10300-10399)
Topic: 10315 - Poker Hands
Replies: 63
Views: 27455

Not sure exactly Codemonkey2000. However I keep getting WA and I have no clue why. I have done all of Jan's inputs and all match. Here is what I have for Java. public class Main { private static int[] xlat = {0,0,0,1,2,3,4,5,6,7,0,0,0,0,0,0,0,12,0,0,1,0,0,0,2,0,9,11,0,0,0,0,0,10,0,3,8}; public stati...

Go to advanced search