C [ BaekJoon - Python ] 1213. 팰린드롬 만들기(Silver 4) n = sorted(list(input().rstrip())) c = 0 x = "" if len(n) == 2: if n[0] != n[1]: print("I'm Sorry Hansoo") quit() i = 0 l = len(n) while i 1: print("I'm Sorry Hansoo") quit() i += 1 for _ in n[::2] + [x] + n[::-2]: print(_, end="") 카테고리 없음 2021.12.09
C [ BaekJoon - Python ] 23305. 수강변경 (Silver 5) 23305. 수강변경 (Silver 5) 👉 문제 👉 풀이 n = int(input()) l = [0] * 1000001 for i in list(map(int, input().split())): l[i] += 1 c = 0 for i in list(map(int, input().split())): if l[i] >= 1: l[i] -= 1 else: c += 1 print(c) Algorithm/BOJ 2021.11.30