CONVERT TIME
CodeChefOpen on judge ↗
Chongaman is confused with 24-hour format and he wants you help to convert it to 12-hour format. Please write a program for him, he will bless you ###Input: There will be two lines of input. - First line will contain $H$ which stands for Hours in 24-Hour format. - Second line will contain $M$ which stands for Minutes. ###Output: You have to output in the $12-hour$ format witth AM/PM ac
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start