0

What’s wrong?

Hi there! I’ve tried to resolve “Military Time” in Code Simulator. It’s OK when I compile it just as a code. But when I do it in simulator as a task there are three right tests and two wrong. And I can see mistakes just in 2 tests. Please help! What’s wrong with it? I think my code is right. Not beauty but right))) Thank you! May be problems are in Sololearn tests? https://code.sololearn.com/ca4Eld9r74lM/?ref=app

9th May 2020, 12:38 AM
Roman Allaberdin
Roman Allaberdin - avatar
3 Answers
+ 3
Incorrect output format for the hours of; 1:00 AM - 9:59 AM 1:30 AM should output 01:30 not 1:30
9th May 2020, 12:48 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
No worries, it seems to be the most common failure with this one.
9th May 2020, 12:52 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Damn!!! I have to be more attentive. Thank you so much ChaoticDawg
9th May 2020, 12:51 AM
Roman Allaberdin
Roman Allaberdin - avatar