|
-
Aug 28th, 2004, 11:41 AM
#1
Thread Starter
Fanatic Member
Losing my marbles
There are 10 red marbles, 20 blue marbles, and 30 green marbles. 10 people, in turn, choose one marble. Each person can choose a total of 1 red, 2 blue, 3 green. Each chosen marble is placed in a continous row to create a row of all 60 marbles. How many different rows can be created? Can you write a program that would print out each different row? For example:
rrrrrrrrrrbbbbbbbbbbbbbbbbbbbbgggggggggggggggggggggggggggggg
rrrrrrrrrrbbbbbbbbbbbbbbbbbbbgbggggggggggggggggggggggggggggg
rrrrrrrrrrbbbbbbbbbbbbbbbbbbbggbgggggggggggggggggggggggggggg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|