코드포스 339B 풀이 n,m=map(int,input().split()) arr= list(map(int,input().split())) hap=arr[0]-1 for i in range(len(arr)-1): if arr[i] 코드포스 풀이 2022.01.31