Write a program to find a matching groom for
a given bride. You have been given an array
of grooms by personality-type-number (integer
array A), personality-type-number of a bride
(integer B), 1st round shortlist count
(integer x), 2nd round shortlist count
(integer Y). Write a program to find the
matched groom's personality-type-number.
Input
10
5 10 20 2 4 5 1 950 8
6
5
3
where
First line contains number of grooms
(integer N)
Second line contains list of grooms
denoted by personality-type-number
(integer array A)
• Third line contains a bride's
personality-type-number (integer B)
Fourth line contains 150 round shortlist
count (integer x)
Fifth lire contains 2nd round shortlist
count (integer Y)
Output: 9
Answers
Answered by
3
Answered by
0
Answer:
Explanation:
On bride hunting, he may find more than one contenders to be his ... Given a Matrix N*M, Sam's house is at (1, 1). ... It will contain the row and column of the bride, and the number of ... Hence, she is the bride. Hence, the output will be 1:7:3. Example 2. Input: 6 6 ... What is the use of Math.abs in that code?
Similar questions