See AnswerHide Answer
Three friends A, B and C went on a trip.
A didn’t carry any food with him but had 13 Coins. B had 6 sandwiches, and C had 7 sandwiches with him (Total 13 Sandwiches).
They decided to share the food equally and in return A would give away all 13 coins to B & C.
How should B & C distribute the money?
Since they have to share the sandwiches equally, each of them will get 13/3 sandwiches.
Hence the sandwiched contributed by B and C to A.
B: 6 – 13/3 = 5/3
C:7 -13/3 = 8/3
Now A should give the money in the ratio of what he got from B and C, i.e.
5/3:8/3 :: 5:8
Hence B will get 5 and C will get 8 coins.
It was the first day of our second semester and we were looking for our hostel room numbers allotted, we saw that one of our friend was already allotted the room number last night and he challenged us to guess his new room number. We gave following answers
135, 780, 785 and 732.
He said, “That’s amazing”, “You’ve each guessed exactly one digit correctly and in its right place!”
Now can you guess what is his room number ?
See Guess the room number puzzle solutionHide Guess the room number puzzle solution
Answer is 182
The first digit must be 1 or 7. It can’t be 7 as only one digit is correct in each guess. So it’s 1.
The other digits in guess #1 (i.e. 3 and 5) must be incorrect. Therefore, from guess #3, the second digit is 8.
Guess #4 has a correct digit which must be its third, i.e. 2.
Most of us are familiar with google codejam, those who don’t visit https://code.google.com/codejam for more information. This is the first problem from Qualification Round 2013.
Tic-Tac-Toe-Tomek is a game played on a 4 x 4 square board. The board starts empty, except that a single ‘T’ symbol may appear in one of the 16 squares. There are two players: X and O. They take turns to make moves, with X starting. In each move a player puts her symbol in one of the empty squares. Player X’s symbol is ‘X’, and player O’s symbol is ‘O’.
After a player’s move, if there is a row, column or a diagonal containing 4 of that player’s symbols, or containing 3 of her symbols and the ‘T’ symbol, she wins and the game ends. Otherwise the game continues with the other player’s move. If all of the fields are filled with symbols and nobody won, the game ends in a draw. See the sample input for examples of various winning positions.
Given a 4 x 4 board description containing ‘X’, ‘O’, ‘T’ and ‘.’ characters (where ‘.’ represents an empty square), describing the current state of a game, determine the status of the Tic-Tac-Toe-Tomek game going on. The statuses to choose from are:
If there are empty cells, and the game is not over, you should output “Game has not completed”, even if the outcome of the game is inevitable.
Check your answer:- See ExplanationHide Explanation
Star + Ball + Star – Ball = 9 + 3
2*Start = 12;
Star = 6;
Ball = 9-6 = 3;
Ball * Star = 3*6 = 18.
Answer is in this format : <last digit><sum of all digits>
thus answer to this number puzzle will be 79.