Created
August 20, 2020 08:04
-
-
Save Svastikkka/c5277767eba96e2bc7859cee544edc53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h=int(input()) | |
m=int(input()) | |
s=int(input()) | |
a=input() | |
if a=="AM": | |
print(3600*h+m*60+s) | |
else: | |
print(3600*(h+12)+m*60+s) |
Author
Svastikkka
commented
Aug 20, 2020
- Clock Seconds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment