Search found 34 matches

by broderic
Mon Jun 24, 2002 3:18 am
Forum: Volume 103 (10300-10399)
Topic: 10309 - Turn the Lights Off
Replies: 19
Views: 8995

10309 - Turn the Lights Off

can anybody give a test case where this code fails,or give me a hint
why it doesn't work? thanks!
by broderic
Sun Jun 23, 2002 11:33 pm
Forum: Volume 1 (100-199)
Topic: 153 - Permalex
Replies: 32
Views: 13170

nevermind, i figured it out.
it was overflowing, so i switched to long doubles.
works now. :)
by broderic
Sun Jun 23, 2002 12:01 am
Forum: Volume 1 (100-199)
Topic: 153 - Permalex
Replies: 32
Views: 13170

153

can anybody think of a reason why this doesnt' work? #include <stdio.h> unsigned ways; int chars[26]; unsigned pos (char *str) { unsigned i,ret,numforeach; if (strlen(str)==2) { chars[str[0]-'a']++; chars[str[1]-'a']++; if (str[0]!=str[1]) ways = 2; else ways = 1; return (str[0]>str[1]) ? 1 : 0; } r...
by broderic
Thu Jun 06, 2002 4:37 am
Forum: Volume 7 (700-799)
Topic: 785 - Grid Colouring
Replies: 27
Views: 13809

785 - Grid Colouring

Do i have to check if a marking is inside a closed zone before
i attempt to fill it?

As it is, i'm not doing that and my submission keeps getting rejected.

Thanks
Broderick

Go to advanced search