Analog Clock and Mirror
All submissions for this problem are available.There is one vertical mirror through which you can see the reflection of a standard analog wall clock. There is no number written on the clock. There are only two hands, one short hand which is hour hand and another long hand which is minute hand. You know the time it is showing through the mirror. You need to tell the actual time it shows. ###Input: - First line will contain $T$, number of testcases. Then the testcases follow. - Each testcase contains of a single line of input, containing two integers $H$ and $M$. $H$ represents hour and $M$ represents minute. ###Output: For each testcase, output two space separated integers in a single line actual hour and minute respectively. ###Constraints - $1 \leq T \leq 1000$ - $1 \leq H \leq 12$ - $0 \leq M \leq 59$ ###Sample Input: 2 10 0 8 21 ###Sample Output: 2 0 3 39 ###EXPLANATION: - **Test Case 1:** ![Test case 1](https://codechef_shared.s3.amazonaws.com/download/HYC/External_contest_i... =384x216) - **Test Case 2:** ![Test case 2](https://codechef_shared.s3.amazonaws.com/download/HYC/External_contest_i... =384x216)
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.