20240530 Baekjoon
This commit is contained in:
parent
120a903106
commit
5ce7f9a885
4
Baekjoon/python/14681.py
Normal file
4
Baekjoon/python/14681.py
Normal file
@ -0,0 +1,4 @@
|
||||
x = int(input())
|
||||
y = int(input())
|
||||
|
||||
print("3421"[x>0::2][y>0])
|
||||
2
Baekjoon/python/2480.py
Normal file
2
Baekjoon/python/2480.py
Normal file
@ -0,0 +1,2 @@
|
||||
a, b, c = map(int, input().split())
|
||||
print(a*1000+10000 if a==b==c else (a*100+1000 if a==b or a==c else (b*100+1000 if b==c else max(a,b,c)*100)))
|
||||
4
Baekjoon/python/2525.py
Normal file
4
Baekjoon/python/2525.py
Normal file
@ -0,0 +1,4 @@
|
||||
h, m = map(int, input().split())
|
||||
d = int(input())
|
||||
t = h*60 + m + d
|
||||
print(t//60%24, t%60)
|
||||
3
Baekjoon/python/2884.py
Normal file
3
Baekjoon/python/2884.py
Normal file
@ -0,0 +1,3 @@
|
||||
h, m = map(int,input().split())
|
||||
t = 60*h + m - 45
|
||||
print(t//60%24, t%60)
|
||||
Loading…
x
Reference in New Issue
Block a user