python-for-coding-test icon indicating copy to clipboard operation
python-for-coding-test copied to clipboard

315 볼링공 고르기

Open ghost opened this issue 5 years ago • 0 comments

n,m = map(int,input().split()) data = list(map(int,input().split())) count = 0 for i in range(len(data)): for j in range(i+1,len(data)): if data[i] != data[j]: count += 1 print(count)

이런식으로 풀이를 해도 괜찮을까욤 ??

ghost avatar Jan 03 '21 13:01 ghost