전체 글186 백준 - 10101 삼각형 외우기 a = int(input()) b = int(input()) c = int(input()) d = a+b+c if a == 60 and b == 60 and c == 60: print("Equilateral") elif (d == 180) and ((a == b) or (b == c) or (a == c)): print("Isosceles") elif d == 180 and (a != b != c): print("Scalene") elif d != 180: print("Error") 2022. 10. 3. 백준 9316 - Hello Judge n = int(input()) for i in range(1, n+1): print("Hello World, Judge", str(i)+"!") 2022. 10. 2. 백준 - 10988 펠린드롬인지 확인하기 word = list(input()) if word == word[::-1]: print(1) else: print(0) 2022. 10. 1. 백준 1009 - 분산처리 t = int(input()) for i in range(t): a, b = map(int, input().split()) a = a % 10 if a == 0: print(10) elif a == 1 or a == 5 or a == 6: print(a) elif a == 4 or a == 9: b = b % 2 if b == 1: print(a) else: print((a * a) % 10) else: b = b % 4 if b == 0: print((a**4) % 10 % 10 % 10) else: print((a**b) % 10 % 10 % 10) 2022. 9. 30. 이전 1 ··· 6 7 8 9 10 11 12 ··· 47 다음