20240530 Baekjoon

This commit is contained in:
송예찬 2024-05-30 15:29:12 +09:00
parent 120a903106
commit 5ce7f9a885
4 changed files with 13 additions and 0 deletions

4
Baekjoon/python/14681.py Normal file
View 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
View 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
View 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
View File

@ -0,0 +1,3 @@
h, m = map(int,input().split())
t = 60*h + m - 45
print(t//60%24, t%60)