Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started