From 25d410a665f0b693e826ba529d0b654ab8422a51 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Tue, 17 Jun 2025 16:33:35 +0900 Subject: [PATCH] 20250617 baekjoon python --- code_study/Baekjoon/python/10101.py | 9 +++++++++ code_study/Baekjoon/python/1085.py | 2 ++ code_study/Baekjoon/python/14215.py | 3 +++ code_study/Baekjoon/python/15894.py | 1 + code_study/Baekjoon/python/27323.py | 1 + code_study/Baekjoon/python/3009.py | 7 +++++++ code_study/Baekjoon/python/5073.py | 13 +++++++++++++ code_study/Baekjoon/python/9063.py | 10 ++++++++++ 8 files changed, 46 insertions(+) create mode 100644 code_study/Baekjoon/python/10101.py create mode 100644 code_study/Baekjoon/python/1085.py create mode 100644 code_study/Baekjoon/python/14215.py create mode 100644 code_study/Baekjoon/python/15894.py create mode 100644 code_study/Baekjoon/python/27323.py create mode 100644 code_study/Baekjoon/python/3009.py create mode 100644 code_study/Baekjoon/python/5073.py create mode 100644 code_study/Baekjoon/python/9063.py diff --git a/code_study/Baekjoon/python/10101.py b/code_study/Baekjoon/python/10101.py new file mode 100644 index 0000000..a413827 --- /dev/null +++ b/code_study/Baekjoon/python/10101.py @@ -0,0 +1,9 @@ +a,b,c = map(int, [input(), input(), input()]) +if a+b+c != 180 : + print("Error") +elif a==b==c : + print("Equilateral") +elif a==b or a==c or b==c : + print("Isosceles") +else : + print("Scalene") \ No newline at end of file diff --git a/code_study/Baekjoon/python/1085.py b/code_study/Baekjoon/python/1085.py new file mode 100644 index 0000000..7ca9b78 --- /dev/null +++ b/code_study/Baekjoon/python/1085.py @@ -0,0 +1,2 @@ +x, y, w, h = map(int, input().split()) +print(min(x,y,w-x,h-y)) \ No newline at end of file diff --git a/code_study/Baekjoon/python/14215.py b/code_study/Baekjoon/python/14215.py new file mode 100644 index 0000000..b9dfc2a --- /dev/null +++ b/code_study/Baekjoon/python/14215.py @@ -0,0 +1,3 @@ +a, b, c = map(int, input().split()) +m, s = max(a,b,c), sum([a,b,c]) +print(s if 2*m < s else 2 * (s - m) - 1) \ No newline at end of file diff --git a/code_study/Baekjoon/python/15894.py b/code_study/Baekjoon/python/15894.py new file mode 100644 index 0000000..a68e450 --- /dev/null +++ b/code_study/Baekjoon/python/15894.py @@ -0,0 +1 @@ +print(int(input())*4) \ No newline at end of file diff --git a/code_study/Baekjoon/python/27323.py b/code_study/Baekjoon/python/27323.py new file mode 100644 index 0000000..595db68 --- /dev/null +++ b/code_study/Baekjoon/python/27323.py @@ -0,0 +1 @@ +print(int(input())*int(input())) \ No newline at end of file diff --git a/code_study/Baekjoon/python/3009.py b/code_study/Baekjoon/python/3009.py new file mode 100644 index 0000000..4938fd9 --- /dev/null +++ b/code_study/Baekjoon/python/3009.py @@ -0,0 +1,7 @@ +x=0 +y=0 +for _ in range(3) : + a, b = map(int, input().split()) + x ^= a + y ^= b +print(x,y) \ No newline at end of file diff --git a/code_study/Baekjoon/python/5073.py b/code_study/Baekjoon/python/5073.py new file mode 100644 index 0000000..8a43c16 --- /dev/null +++ b/code_study/Baekjoon/python/5073.py @@ -0,0 +1,13 @@ +while(True) : + a,b,c = map(int, input().split()) + if a==b==c==0 : + break + + if 2 * max(a,b,c) >= sum([a,b,c]) : + print("Invalid") + elif a==b==c : + print("Equilateral") + elif a==b or a==c or b==c : + print("Isosceles") + else : + print("Scalene") \ No newline at end of file diff --git a/code_study/Baekjoon/python/9063.py b/code_study/Baekjoon/python/9063.py new file mode 100644 index 0000000..593155a --- /dev/null +++ b/code_study/Baekjoon/python/9063.py @@ -0,0 +1,10 @@ +for i in range(int(input())) : + if i==0 : + xMin, yMin = map(int, input().split()) + xMax, yMax = xMin, yMin + continue + + x, y = map(int, input().split()) + xMin, yMin, xMax, yMax = min(x,xMin), min(y,yMin), max(x,xMax), max(y,yMax) + +print((xMax-xMin)*(yMax-yMin)) \ No newline at end of file