[Solution] Good Pairs CodeChef Solution | CodeChef Problem Solution 2022
You are given arrays and of length each. Determine the number of good pairs.
A pair is said to be good if all of the following conditions are satisfied:
Input Format
- First line will contain , the number of test cases. Then the test cases follow.
Solution Click Below:- CLICK HERE
Description of each test case:
- First line contains an integer - denoting the length of the arrays.
- Second line contains space-separated integers - denoting the array .
- Third line contains space-separated integers - denoting the array .
Output Format
For each test case, output the number of good pairs.
Constraints
- Sum of over all test cases does not exceed .
Join Now for Solution:-
No comments:
Post a Comment