[ 2023-06-27 ๐Ÿฅฝ TIL ]

Burkeyยท2023๋…„ 6์›” 27์ผ
0

TIL

๋ชฉ๋ก ๋ณด๊ธฐ
108/157

๋ฐฑ์ค€ 5073๋ฒˆ ํŒŒ์ด์ฌ


๋ฌธ์ œ


์ฝ”๋“œ

import sys

input = sys.stdin.readline

a, b, c = map(int, input().split())

while a != 0 and b != 0 and c != 0:
  li_n = sorted([a,b,c]) # ๋ณ€์˜ ๊ธธ์ด ์˜ค๋ฆ„

  if li_n[2] >= (li_n[1] + li_n[0]) :
    print('Invalid')
 # ๊ฐ€์žฅ ๊ธด ๋ณ€์˜ ๊ธธ์ด์™€ ๋‚˜๋จธ์ง€ ๋ณ€์˜ ๊ธธ์ด๋“ค์„ ํ•ฉ์นœ ๊ฐ’์„ 
 # ๋น„๊ตํ•˜๋Š” if๋ฌธ์ด ๋จผ์ € ์žˆ์–ด์•ผํ•œ๋‹ค.
  else:
    if a == b and b == c :
        print('Equilateral')
    elif a == b or a == c or c == b :
        print('Isosceles')
    else:
        print('Scalene')

  a, b, c = map(int, input().split())
profile
์Šคํƒฏ ์˜ฌ๋ฆฌ๋Š” ์ค‘

0๊ฐœ์˜ ๋Œ“๊ธ€