게시판 게시물

giokim142
2021년 5월 01일
In 소스 코드 제출
''' print('Hello') ''' ''' # 1 2 3 a, b, c = input().split() a = int(a) b = int(b) c = int(c) print(a, b, c) ''' ''' a, b = input().split() c = int(a) d = int(b) e = str(c+d) f = str(c-d) g = str(c*d) h = int(c/d) i = str(h) print(a+'+'+b+'='+e) print(a+'-'+b+'='+f) print(a+'*'+b+'='+g) print(a+'/'+b+'='+i) a = input() a = int(a) f = 9/5*a+32 print(f) a, b = input().split() a = int(a) b = int(b) if b >= 30: c = b - 30 else: if a == 0: a = 23 else: a -= 1 c = 60 + b - 30 print(a, c) a,b = input() c = int(b) d = int(a) e = (10 * c + d)*2 if e > 100: while e > 100: e -= 100 print(e) if e <= 50: print('GOOD') else: print('OH MY GOD') a, b, c = input().split() a = int(a) b = int(b) c = int(c) if c >= a + b: print('삼각형아님') elif a == b == c: print('정삼각형') elif a == b or a == c or b == c: print('이등변삼각형') elif c * c == a * a + b * b: print('직각삼각형') else: print('삼각형') n = int(input()) d = input().split() a = 0 for i in range(len(d)): d[i] = int(d[i]) if d[i] % 5 == 0: a += d[i] print(a). for i in range(5): print('+',end='') print(i,end='') print('=',end='') a, b = input().split() a = int(a) b = int(b) v = a d = 0 e = '' while v <= b: c = v if c % 2 == 0: d -= c c = str(-1 * c) print(c, end='') c = int(c) c = -1 * c else: d += c c = str(c) c = int(c) if c == d: c = str(c) print(c, end='') else: c = str(c) print('+', end='') print(c, end='') c = int(c) v += 1 d = str(d) print('='+d, end='') ''' ''' a = input() a = int(a) b = input() b = int(b) c = input() c = int(c) d = input() d = int(d) e = input() e = int(e) max = a min = a if b > max: max = b if c > max: max = c if d > max: max = d if e > max: max = e if b < min: min = b if c < min: min = c if d < min: min = d if e < min: min = e print(max) print(min) ''' ''' data = [] for i in range(5): v = int(input()) data.append(v) data.sort() print(data[0]) print(data[4]) ''' def calculate(n, data): dd = 10 return dd n = int(input()) data = [] for i in range(n-1): v = int(input()) data.append(v) print(calculate(n, data))
0
0
2

giokim142

더보기