반응형
Notice
Recent Posts
Recent Comments
Link
목록삼각형외우기 (1)
안경잡이 구루루
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/4SWqI/btssVIjnFNO/UdLAGPqDeE4KaR3xAjlb2K/img.png)
https://www.acmicpc.net/problem/10101 10101번: 삼각형 외우기문제의 설명에 따라 Equilateral, Isosceles, Scalene, Error 중 하나를 출력한다.www.acmicpc.net 나:angles=[] totall =0 for i in range(3): angle = int(input()) totall +=angle angles.append(angle) no_dup = set(angles) if totall != 180: print('Error') else: if len(no_dup) ==3: print('Scalene') if len(no_dup) ==2: print('Isosceles') if len(no_dup) ==1: print('Equilat..
파이썬(Python)/문제풀이(백준,BaekJoon)
2023. 9. 3. 11:01