20250617 baekjoon python
This commit is contained in:
parent
2ca620b79e
commit
25d410a665
9
code_study/Baekjoon/python/10101.py
Normal file
9
code_study/Baekjoon/python/10101.py
Normal file
@ -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")
|
||||
2
code_study/Baekjoon/python/1085.py
Normal file
2
code_study/Baekjoon/python/1085.py
Normal file
@ -0,0 +1,2 @@
|
||||
x, y, w, h = map(int, input().split())
|
||||
print(min(x,y,w-x,h-y))
|
||||
3
code_study/Baekjoon/python/14215.py
Normal file
3
code_study/Baekjoon/python/14215.py
Normal file
@ -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)
|
||||
1
code_study/Baekjoon/python/15894.py
Normal file
1
code_study/Baekjoon/python/15894.py
Normal file
@ -0,0 +1 @@
|
||||
print(int(input())*4)
|
||||
1
code_study/Baekjoon/python/27323.py
Normal file
1
code_study/Baekjoon/python/27323.py
Normal file
@ -0,0 +1 @@
|
||||
print(int(input())*int(input()))
|
||||
7
code_study/Baekjoon/python/3009.py
Normal file
7
code_study/Baekjoon/python/3009.py
Normal file
@ -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)
|
||||
13
code_study/Baekjoon/python/5073.py
Normal file
13
code_study/Baekjoon/python/5073.py
Normal file
@ -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")
|
||||
10
code_study/Baekjoon/python/9063.py
Normal file
10
code_study/Baekjoon/python/9063.py
Normal file
@ -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))
|
||||
Loading…
x
Reference in New Issue
Block a user