Editorial for Valentine's Day '18 J3 - Are they cute?
Submitting an official solution before solving the problem yourself is a bannable offence.
The key phrase in this problem is "they must be cuter than more than half of the people present".
Thus the solution can be coded to iterate through all the people, and per person count the number of people who are cuter. With just that, one would have to compare it to
n / 2 which leaves room for error, thus the solution below simply adds for each cuter person.
for i in range(n): cuter = 0 for j in range(n): if cuteness[i] > cuteness[j]: cuter += 2 if cuter > n: print(names[i] + " is cute! <3") else: print(names[i] + " is not cute. </3")