0% found this document useful (0 votes)
18 views1 page

Input and Output Array Basics

The document describes an array input/output problem where the user is given the size of an array N and N integer elements as input. They must output the input array. The input format provides the array size N on the first line and the N space-separated array elements on the second line. The output should print the input array on a new line. The array size is between 1 and 100, elements are between -10 and 50, and multiple test cases are provided with a time limit of 1 second.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Input and Output Array Basics

The document describes an array input/output problem where the user is given the size of an array N and N integer elements as input. They must output the input array. The input format provides the array size N on the first line and the N space-separated array elements on the second line. The output should print the input array on a new line. The array size is between 1 and 100, elements are between -10 and 50, and multiple test cases are provided with a time limit of 1 second.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Input and Output Array

PrepBuddy wants you to ease into the topic of Array, so he provided the most basic
question. You are given an integer NN representing the size of the array and NN
elements of the array. Your task is to input the array and output it.

Input Format

First line contains Test case variable TT , For each of the TT lines First line
contains NN Second line contains NN space-separated integers representing the
elements of the array.

Output format

For each TT case, output the Array in a new line.

Constraints

1<=N<=1001<=N<=100 −10<=A[i]<=50−10<=A[i]<=50

Time limit

11 second

Example

Input
22 55 11 22 33 44 55 77 55 11 44 66 88 11 44
Output
11 22 33 44 55 55 11 44 66 88 11 4

You might also like