#K54417. Count Popular Users
Count Popular Users
Count Popular Users
In a social media application, each user has a number of accounts they follow and a number of followers. A user is defined as popular if the number of followers they have is strictly greater than the number of accounts they follow. Formally, for each user i, the user is popular if
Your task is to count the number of popular users given the data of N users.
Example:
Input: 5 1 2 3 4 5 5 4 3 2 1</p>Output: 2
inputFormat
The input is read from stdin and consists of three lines:
- The first line contains a single integer N representing the number of users.
- The second line contains N space-separated integers where the i-th integer denotes the number of users the i-th user follows.
- The third line contains N space-separated integers where the i-th integer denotes the number of followers of the i-th user.
outputFormat
Output a single integer, which is the number of popular users, printed to stdout.
## sample5
1 2 3 4 5
5 4 3 2 1
2