All submissions for this problem are available.
Problem Definition :
You will be given time in HH MM SS in 12hr format. This is our normal 12hr format clock. Now you have to find what will be time after hour hand moves by x degress .
Note: There are no leading zeroes, in input.
- 1 <= T <= 105
- 1 <= HH <= 12
- 0 <= MM,SS <= 59
- 0 <= x <= 105
Given t testcases. Each testcase consists 4 integers denoting HH,MM,SS,x respectively.
For each testcase output the time after which hour hand moves by x degress in HH MM SS format.
1 12 0 0 30
1 0 0
|Tags||easy, kpr32018, mod, shmabulock|
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, PYP3|
Fetching successful submissions