![]() |
| | #1 |
| Anti-Poster Join Date: Feb 2002
Posts: 1,241
| Contest Results - Snake Numbers This is the first contest I've ever run, so this was a bit of a learning experience for me. The first thing I learned: be extremely specific in the requirements. Here's a few fun questions: Suppose you have a two-dimensional integer array, array. 1. Do you index the array with indices x and y like array[x][y] or array[y][x]? 2. From any particular (x,y), how do you move 'north' from that position? These are some rather important questions that I didn't answer, and every entry assumed something different. After smacking myself in the head a few times, I #ifdef'ed up the test program to account for these differences and went to testing. So...congratulations to Cactus_Hugger! Cactus_Hugger's entry ran fast and generated some good moves. If you want to see the full results and the entries, click here. One question: when do you want another?
__________________ Rule #1: Every rule has exceptions |
| pianorain is offline | |
| | #2 | ||
| Tropical Coder Join Date: Mar 2005 Location: Cayman Islands
Posts: 503
| First thanks for running the contest and it was fun. Quote:
Third, I could had had comparable times to Cactus, but I decided to try to get a higher score, which I did...but at a price. Finally regarding the use of statics Quote:
__________________ SWinC - Simple Windows Class Last edited by Darryl; 06-20-2006 at 02:15 PM. | ||
| Darryl is offline | |
| | #4 |
| int x = *((int *) NULL); Join Date: Jul 2003 Location: Banks of the River Styx
Posts: 902
| I won...The time saved me. I have a 450Mhz PC, so I didn't like sitting around all day. And gains became minimal. And it seems we all had much the same solution: brute force. I seem to have the only non-recursive one. Will look more later... tis late now.Looking at the compilation part... interesting what happens when two compilers look over the same code. I'm a MinGW user. The first warning is totally deserved - Print doesn't do what it says. (Nor what I intended... it was supposed to use s... my bad. It was entirely a debug function though. Talk about some big text files...) Your comments are right, though I haven't figured out the last two warnings. Your next contest sounds interesting. Hopefully there'll be more entries. Thanks for this contest!
__________________ long time; /* know C? */ Unprecedented performance: Nothing ever ran this slow before. Any sufficiently advanced bug is indistinguishable from a feature. Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31. The best way to accelerate an IBM is at 9.8 m/s/s. recursion (re - cur' - zhun) n. 1. (see recursion) |
| Cactus_Hugger is offline | |
| | #5 |
| Registered User Join Date: Jan 2005
Posts: 847
| I'll enter the next contest too, this time I'll do more testing and turn compiler warnings on ![]() Thanx for the contest I'm looking foreward to the next one. |
| Quantum1024 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Results - 4th contest, saturday, august 11 | ygfperson | A Brief History of Cprogramming.com | 17 | 08-12-2002 09:41 AM |
| Results for *easy* contest: | ygfperson | A Brief History of Cprogramming.com | 15 | 07-27-2002 11:35 AM |
| Results for the Encryption Contest -- June 23, 2002 | ygfperson | A Brief History of Cprogramming.com | 18 | 07-07-2002 08:04 AM |
| Contest Results - May 27, 2002 | ygfperson | A Brief History of Cprogramming.com | 18 | 06-18-2002 01:27 PM |