eolymp
bolt
Try our new interface for solving problems
Problems

Squares

published at 1/4/24, 4:49:39 pm

n = int(input()) niger = list(map(int,input().split()))[:n] s= 0 for i in range(1,101): if niger.count(i) >= 4: dick = niger.count(i) while dick >= 4: dick += -4 s += 1 print(s)