You've been placed on a course of expensive medication in which you are to take one tablet of Sildenafil and one tablet of Citrate daily. You must be careful that you take just one of each because taking more of either can have serious side effects. Taking Sildenafil without taking Citrate, or vice versa, can also be very serious, because they must be taken together in order to be effective. In summary, you must take exactly one of the Sildenafil pills and one of the Citrate pills at one time. Therefore, you open up the Sildenafil bottle, and you tap one Sildenafil pill into your hand. You put that bottle aside and you open the Citrate bottle. You do the same, but by mistake, two Citrates fall into your hand with the Sildenafil pill. Now, here's the problem. You weren't watching your hand as the pills fell into it, so you can't tell the Sildenafil pill apart from the two Citrate pills. The pills look identical. They are both the same size, same weight (10 micrograms), same color (Blue), same shape (perfect square), same everything, and they are not marked differently in any way. What are you going to do? You cannot tell which pill is which, and they cost $300 a piece, so you cannot afford to throw them away and start over again. How do you get your daily dose of exactly one Sildenafil and exactly one Citrate without wasting any of the pills?
Carefully cut each of the three pills in half, and carefully separate them into two piles, with half of each pill in each pile. You do not know which pill is which, but you are 100% sure that each of the two piles now contains two halves of Cirate and half of Sildenafil. Now go back into the Sildenafil bottle, take out a pill, cut it in half, and add one half to each stack. Now you have two stacks, each one containing two halves of Sildenafil and two halves of Citrate. Take one stack of pills today, and save the second stack for tomorrow.
See also best riddles or new riddles.logic
Betty signals to the headwaiter in a restaurant, and says, ''There is a fly in my tea.'' The waiter says ''No problem Madam. I will bring you a fresh cup of tea.'' A few minutes later Betty shouts, ''Get me the manager! This is the same cup of tea.'' How did she know? Hint: The tea is still hot.
Betty had already put sugar in her tea before sending it back. When the "new" cup came, it was already tasted sweet. logicmath
There are n coins in a line. (Assume n is even). Two players take turns to take a coin from one of the ends of the line until there are no more coins left. The player with the larger amount of money wins.
Would you rather go first or second? Does it matter?
Assume that you go first, describe an algorithm to compute the maximum amount of money you can win.
Note that the strategy to pick maximum of two corners may not work. In the following example, first player looses the game when he/she uses strategy to pick maximum of two corners.
Example 18 20 15 30 10 14
First Player picks 18, now row of coins is
20 15 30 10 14
Second player picks 20, now row of coins is
15 30 10 14
First Player picks 15, now row of coins is
30 10 14
Second player picks 30, now row of coins is
First Player picks 14, now row of coins is
Second player picks 10, game over.
The total value collected by second player is more (20 + 30 + 10) compared to first player (18 + 15 + 14). So the second player wins.
Going first will guarantee that you will not lose. By following the strategy below, you will always win the game (or get a possible tie).
(1) Count the sum of all coins that are odd-numbered. (Call this X)
(2) Count the sum of all coins that are even-numbered. (Call this Y)
(3) If X > Y, take the left-most coin first. Choose all odd-numbered coins in subsequent moves.
(4) If X < Y, take the right-most coin first. Choose all even-numbered coins in subsequent moves.
(5) If X == Y, you will guarantee to get a tie if you stick with taking only even-numbered/odd-numbered coins.
You might be wondering how you can always choose odd-numbered/even-numbered coins. Let me illustrate this using an example where you have 6 coins:
18 20 15 30 10 14
Sum of odd coins = 18 + 15 + 10 = 43
Sum of even coins = 20 + 30 + 14 = 64.
Since the sum of even coins is more, the first player decides to collect all even coins. He first picks 14, now the other player can only pick a coin (10 or 18). Whichever is picked the other player, the first player again gets an opportunity to pick an even coin and block all even coins.funnylogicwhat am I
What am I?
If you multiply all the numbers on the telephone, what is the answer?
0 (Remember, their is a zero!)logicshort
Finish the sequence:
7 8 5 5 3 4 4 ?
6 - the number of letters in the month august; (January has 7 letters, February has 8 etc.)cleanlogicwhat am I
I move very slowly at an imperceptible rate, although I take my time, I am never late. I accompany life, and survive past demise, I am viewed with esteem in many women's eyes. What am I?
I am your hair.cleanfunnylogicshort
A man rode out of town on Sunday, he stayed a whole night at a hotel and rode back to town the next day on Sunday. How is this possible?
His Horse was called Sunday!animalcleanfunnylogicshort
A bird, squirrel, and a monkey are running to the top of a coconut tree to get a banana - who will be the first to get to the banana?
None – you cannot get a banana from a coconut tree.funnylogicshort
Elmer Johnson went to the hardware store to make a purchase for his house. He asked the store clerk, "How much will one cost?" The clerk thought for a moment and said, "Three dollars." Elmer Johnson, who looked a little puzzled said, "Well then, how much will twelve cost?" "Six dollars," replied the clerk. Elmer Johnson scratched his head and said, "If I were to purchase two hundred, how much would that cost?" "That," said the clerk, "will cost you nine dollars." What was Elmer Johnson buying?
He was buying house numbers.cleanlogicshort
A beggar's brother died, but the man who died had not brother.
How could this be?
The beggar was a women.