Valentine's Day '18 J3 - Are they cute?

View as PDF

Points: 5 (partial)
Time limit: 3.0s
PyPy 2 1.4s
PyPy 3 1.4s
Memory limit: 64M
PyPy 2 128M
PyPy 3 128M

Author:
Problem type

Carol and Cactus think that everything is cute. However, cuteness, like everything is all relative.

For someone to be relatively cute, they must be cuter than more than half of the people present. You are seeking out potential partners, and you must be able to identify the cute people! Given the values of cuteness (not in Carol numbers), decide if each person is cute.

Input Specification

The first line will contain , the number of people.

The following lines will contain a string and , the name of the th person and their cuteness.

The name of the person will consist of one uppercase letter followed by only lowercase letters.

Output Specification

For each person output:

• {Name} is cute! <3 if that person is cute.
• {Name} is not cute. </3 if that person is not cute.

Sample Input 1

4
Carol 100
Allan 5
Cactus 1000
William 1

Sample Output 1

Carol is not cute. </3
Allan is not cute. </3
Cactus is cute! <3
William is not cute. </3

Sample Input 2

7
Tristan 888
Peibae 503
Clive 444
Royi 231
Dordor 564
Stacy 43
Chad 54

Sample Output 2

Tristan is cute! <3
Peibae is cute! <3
Clive is not cute. </3
Royi is not cute. </3
Dordor is cute! <3
Stacy is not cute. </3
Chad is not cute. </3

Explanation for Sample Output 2

While the first five people are all quite cute, only Tristan, Peibae and Dordor are cuter than 4 or more people.

Yet in the first sample input, one of the names is AllanXu.