Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 706be81

Browse files
RezwanRezwan
Rezwan
authored and
Rezwan
committed
Modified
1 parent 11d3931 commit 706be81

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

‎.DS_Store

2 KB
Binary file not shown.

‎URI/1103 - Alarm Clock.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
def Main():
2+
while True:
3+
H1, M1, H2, M2 = map(int, input().split())
4+
if H1 == M1 == H2 == M2 == 0:
5+
break
6+
else:
7+
x = H1 * 60 + M1
8+
y = H2 * 60 + M2
9+
10+
if (y <= x):
11+
y += 24 * 60
12+
13+
print(abs(y - x))
14+
15+
16+
if __name__ == '__main__':
17+
Main()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /