Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.
This project is maintained by chankruze
You are dividing up building block toys by color into even amounts for all of the kids in a 15 person kindergarten class. You don’t want to give anyone more than anyone else, so you might have some leftover blocks of each color in the end. How many total do you have left over?
If you know how many of each color block you have, add up the leftover blocks to come up with the amount you will have after you have evenly distributed each color to all 15 students.
4 integers that represent the blue, red, green, and yellow blocks that you are sorting out (in that order).
An integer of the total remaining blocks after you have distributed an even amount to all 15 students.
150
20
300
53
13
You will have 5 red blocks and 8 yellow blocks left over which totals 13 leftover blocks.
Language | Solution |
---|---|
C | not available |
CPP | not available |
C# | not available |
Python | available |
Java | not available |
Ruby | not available |
Swift | not available |