← All problemsSign in

Formatting Time

Chef has got a wall clock installed in his restaurant. The clock shows time in 12 hour format as HH:MM:SS AM/PM. The chef's wants to see the time in 24 hour format. Make a program to do so. Input A single string containing a time in -hour clock format (HH:MM:SS AM/PM). Tips:12:56:33AM Output Convert and print the given time in -hour format. Tips: 00:56:33 Constraints Should contain a

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start