diff --git a/Baekjoon/python/14681.py b/Baekjoon/python/14681.py new file mode 100644 index 0000000..7c9cf07 --- /dev/null +++ b/Baekjoon/python/14681.py @@ -0,0 +1,4 @@ +x = int(input()) +y = int(input()) + +print("3421"[x>0::2][y>0]) \ No newline at end of file diff --git a/Baekjoon/python/2480.py b/Baekjoon/python/2480.py new file mode 100644 index 0000000..bde1c0b --- /dev/null +++ b/Baekjoon/python/2480.py @@ -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))) \ No newline at end of file diff --git a/Baekjoon/python/2525.py b/Baekjoon/python/2525.py new file mode 100644 index 0000000..00c7ca0 --- /dev/null +++ b/Baekjoon/python/2525.py @@ -0,0 +1,4 @@ +h, m = map(int, input().split()) +d = int(input()) +t = h*60 + m + d +print(t//60%24, t%60) \ No newline at end of file diff --git a/Baekjoon/python/2884.py b/Baekjoon/python/2884.py new file mode 100644 index 0000000..b85a725 --- /dev/null +++ b/Baekjoon/python/2884.py @@ -0,0 +1,3 @@ +h, m = map(int,input().split()) +t = 60*h + m - 45 +print(t//60%24, t%60) \ No newline at end of file