Question: Code in C++ Sample input file x= 6 y= 7 3 6 0 -3 8 3 6 7 4 3 3 2 8 1 5

Code in C++

Sample input file

x= 6 y= 7

3 6 0 -3 8 3 6 7 4 3 3 2 8 1 5 8 4 0 -5 1 9 9 7 6 5 4 -4 8 1 5 5 2 6 9 3 8 1 -1 2 4 5 4

Sample output file

1 4

-1

1 5

5 6

-1

2 3

you have a number x =< 30 and another number y =< 10^5. x is the number of arrays and y is the size of each array which contains numbers from -10^7 to -10^8

for each array Z[1 to y], output two different indices 1 =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!