Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Riddles, brain puzzles and mathematical problems
Froge Offline
Posting Freak

Posts: 2,955
Threads: 176
Joined: Jul 2012
Reputation: 125
RE: Riddles, brain puzzles and mathematical problems

20 pianists participate in a competition. Out of these 20, 3 played Bach and 5 played Schumann. 6 out of the 20 pianists are chosen at the end of the competition to receive a prize.

What is the probability that, out of the prize winners, at least two played Bach or none played Schumann?

~

/CStards

Suppose you have a set of n numbers, n >= 3. You are given an integer k. Write a program (in C or pseudocode) that calculates the total number of ways 3 numbers can be chosen from the set to add up to k. There may be duplicates in the set, but each number of the set is considered different. No need to do input, just write algorithm and return output.

[Image: p229xcq]
(This post was last modified: 04-06-2014, 08:11 PM by Froge.)
04-06-2014, 07:46 PM
Find


Messages In This Thread
RE: Riddles, brain puzzles and mathematical problems - by Froge - 04-06-2014, 07:46 PM



Users browsing this thread: 3 Guest(s)