- #1
121212
- 7
- 0
Come play IF you Dare!
hey i made a little game i need to know if its you guys can calculate it
atleast try ;) :
--------------------------------------------------------------------------
and another one by my friend ! :
-------------------------------------------------------------------------
And another one !
-------------------------------------------------------------------------
i am going to try to put these on a site and many more > maybe it needs a little programming to ge tthe correct answers
greetz lassie
hey i made a little game i need to know if its you guys can calculate it
atleast try ;) :
Code:
You have 5 balls that you have to divide (put the balls in the cups) between a number of cups in all possible ways.
1 cup:
---
|5|
---
1 possibility
Total: 1 possibility
2 cups:
-----
|1|4|
-----
|2|3|
-----
|3|2|
-----
|4|1|
-----
|5|0|
-----
|0|5|
-----
6 possibilities
Total: 7 possibilities
3 cups:
21 possibilities
Total: 28 possibilities
Continue until you have 500 cups. The total of possibilities from 1 to 500 is the answer.
and another one by my friend ! :
Code:
N = number of Queens.
You have to put N Queens onto a chess board of N * N squares, so that the Queens don't threaten each other. (horizontally, vertically, diagonally)
How many possible setups are there?
Thus:
How can I put 4 Queens onto a 4*4 board
How can I put 5 Queens onto a 5*5 board
etc...
Calculate all setups for 4 to 10 Queens, take the sum of the results - the sum is the answer
And another one !
-------------------------------------------------------------------------
Code:
If you want to buy something for less than 100 Euro you can pay with different 'units' (coins and bills).
At the moment the 6 best existing units to use are: 1, 2, 5, 10, 20 and 50.
If you want to buy something (that is less than 100 Euro) you have to use some of those units to pay for it.
Now let's go shopping with these 6 units :)
You are going to search for products that are 1 euro until 99 euro, and you are going to buy one of each. Each time you buy something you choose as less units as possible (you have an infinite amount of units).
Let's see how many units we need if we use the units 1, 2, 5, 10, 20 and 50:
1 EURO -> only 1 unit: 1
2 EURO -> 1 unit : 2
3 EURO -> 2 units : 1 + 2
..
..
..
98 EURO -> 6 units : 1 + 2 + 5 + 20 + 20 + 50
99 EURO -> 6 units : 2 + 2 + 5 + 20 + 20 + 50
Now we will take the average of the needed units between 1 and 99, which is 3.4 units.
That's quite alright, but we can do better...
Your job is to find the lowest average with 6 different (integer) units.
Maybe a 3 euro coin is a good idea? And what about a 22 euro bill? Try it out :)
Enter your answer below like this => 1:2:5:10:20:50 (example).
from lowest to highest coin used
i am going to try to put these on a site and many more > maybe it needs a little programming to ge tthe correct answers
greetz lassie
Last edited: