Mockingbird
Submit solution
Points:
1
Time limit:
1.0s
Memory limit:
256M
Author:
Problem type
Allowed languages
C++, Java, Python
You just completed an RSP mock interview with a particularly clever cockatiel.
Scoring for the interview is composed of 3 sections:
- A behavioural question, which has one score from
to
inclusive.
- An easy LeetCode, which has five scores from
to
inclusive.
- A medium LeetCode, which has five scores from
to
inclusive.
To pass the interview, all of your scores need to be at least . Are you destined to be the next legend of RSP?
Input
The first line contains a single integer,
, your score for the behavioural question.
The second line contains five integers, , your scores for the easy LeetCode.
The third line contains five integers, , your scores for the medium LeetCode.
Output
Output "Yes" if you have passed the mock interview, otherwise output "No".
Example
Input 1
5
10 8 9 7 6
5 10 2 5 5
Output 1
No
You got a score of for one part of the medium LeetCode, so you failed the interview.
Input 2
9
5 6 7 6 7
5 8 9 5 5
Output 2
Yes
Input 3
4
10 10 10 10 10
10 10 10 10 10
Output 3
No
Comments