Computer Science, asked by harsha1802, 5 months ago

You are given two arrays a and b of length n and m respectively.
Consider the following (n + m) points on the coordinate plane
|(61,0), (a2,0), (13,0)...... (an, 0)]
|(61,1),(62,1), (13,1)...... (bm, 1)]
Find the area of the largest rectangle that can be constructed from the given points.
Input format
• The first line contains one integer t denoting the number of test cases.
• The first line of each test case contains two integers n and m denoting the number of elements in a and 6
respectively
• The second line of each test case contains 12 integers a
a 1.92
an where a
th
ai
is the
element of a
• The third line of the input contains m integers b1 b2
bm, where b; is the
is the th
element of b
Output format
Sho​

Answers

Answered by PragnyasuhasiniPandu
0

Answer:

Oh my gosh such a long question

Similar questions