Bob Jones High Computer Science Team Program (2/4/05)

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Bob Jones High Computer Science Team Program (2/4/05)

Post by Falco Girgis »

This topic is for discussion of the computer science team's program given to us by Mrs. Rountree today (non CS members feel free to post too. :wink: ).

We can talk about what's going on and help each other out. That way we can ensure that our programs are all compiling and ready to go on Monday... :D
Intermediate Team Guidelines wrote:For this program, given the sequence, in one move remove all zeros, if any, and all the digits to their left. Then find the digit that appears most frequently. Use the rightmost occurrence of that digit, and if it is even subtract 2 from it or if it is odd subtract 1 from it. If two or more digits tie as the most frequent digit, then use the largest such digit. If all the digits appear just once, use the largest digit. Repeat the application of the rules to the sequence. How many moves were required to delete the sequence? Two examples are shown below:

(You're crazy if you think I'm typing them up.)
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

I don't really feel like doing this in straight up DOS console C or C++... I want to do something alot 1337er. I was thinking probably Perl console application or if I wanted something really tight I could go for Dreamcast or SDL ...
WeeboHyren
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 3
Joined: Fri Feb 04, 2005 5:12 pm
Location: Omega Termini

Post by WeeboHyren »

Done ^_^. I might post the code once I clean it up, but its pretty long.
101010
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

WeeboHyren wrote:Done ^_^. I might post the code once I clean it up, but its pretty long.
I'd imagine so. Did you end up using C or C++?
Good job BTW, I haven't even started. :oops:
Post Reply