#P8401. [CCC 2022 J2] Fergusonball Ratings
[CCC 2022 J2] Fergusonball Ratings
Problem Description
You now need to rate a team.
The -th person in the team scored goals and committed fouls.
So the score of the -th person is .
If the -th person's score is greater than , then this person is a golden player.
Correspondingly, if everyone on the team is a golden player, then this team is a golden team.
Input Format
The first line contains an integer , which indicates the number of people on the team.
In the next lines, line gives , and line gives .
Output Format
Output one line: the number of golden players. If this is a golden team, output an additional +.
3
12
4
10
3
9
1
3+
2
8
0
12
1
1
Hint
For all testdata: , .
Translated by ChatGPT 5