boj step 2 rework
This commit is contained in:
17
zeta_python/completed/2480.py
Normal file
17
zeta_python/completed/2480.py
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
I = list(map(int, input().split()))
|
||||||
|
|
||||||
|
|
||||||
|
def reward():
|
||||||
|
global I
|
||||||
|
M = 0
|
||||||
|
for i in range(1, 10):
|
||||||
|
if I.count(i) == 1:
|
||||||
|
M = i
|
||||||
|
elif I.count(i) == 2:
|
||||||
|
return 1000 + i * 100
|
||||||
|
elif I.count(i) == 3:
|
||||||
|
return 10000 + 1000 * i
|
||||||
|
return M * 100
|
||||||
|
|
||||||
|
|
||||||
|
print(reward())
|
||||||
8
zeta_python/completed/2525.py
Normal file
8
zeta_python/completed/2525.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
h, m = map(int, input().split())
|
||||||
|
d = int(input())
|
||||||
|
|
||||||
|
m_o = (m + d) // 60
|
||||||
|
m_new = (m + d) % 60
|
||||||
|
|
||||||
|
h_new = (h + m_o) % 24
|
||||||
|
print(h_new, m_new)
|
||||||
Reference in New Issue
Block a user