Take a 12 - hours digital clock. Now you must be bored seeing the same clock timings everyday. So now you keep that digital clock inverted upside-down. How many timings in the original clock are there such that they appear as "sensible numbers" when the clock is kept inverted upside-down?
Let S be the number of such timings. Input your answer as S + 2 8 .
Details And assumptions:
As an explicit example , if the timing shown in regular clock is 0 6 : 1 9 , then it will be seen as 6 1 : 9 0 in the inverted upside down clock and is one of our required timings . So you have to find the number of such timings.
If the timing is 0 3 : 1 6 , upside down it would be 9 1 : E 0 , and would not be accepted.
Note that after every 1 1 : 5 9 , the clock shows 0 0 : 0 0 and not 1 2 : 0 0 .
All digits look like this: (for clarifying the shape of digits)
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I messed up on my first two tries because I forgot to add 28 and then added it wrong. Lucky for me, I got the third try right. I guess I should use paper for solving problems in the future and stop solving these in my head.
There are 7 acceptable digits 0 , 1 , 2 , 5 , 6 , 8 , 9 . The numbers of hour digits and minute digits are as follows:
□ 0 0 0 0 0 0 0 1 1 □ 0 1 2 5 6 8 9 0 1 9 : × □ 0 1 2 5 4 □ 0 1 2 5 6 8 9 × 7 = 2 5 2 ⇒ S + 2 8 = 2 8 0
Problem Loading...
Note Loading...
Set Loading...
First observe that 0 , 1 , 2 , 5 , 6 , 8 , 9 remain sensible numbers when they appear in an inverted placed clock.
_ _ : _ _
Since we have a 1 2 hours clock , we have the timing format as shown above.
So the first two digits can be 0 0 , 0 1 , 0 2 , 0 5 , 0 6 , 0 8 , 0 9 , 1 0 , 1 1 that is 9 choices. The third digit can be 0 , 1 , 2 , 5 with 4 choices . The fourth digit can be 0 , 1 , 2 , 5 , 6 , 8 , 9 that is 7 choices. So by product rule we have: 9 × 4 × 7 = 2 5 2 = S .
So , S + 2 8 = 2 5 2 + 2 8 = 2 8 0 .