Help in understanding the input requirements.

Can any one please elaborate… what does the chef means by this…

Input

Several test cases are given. The
first line of the sample input
contains an integer T - the number of
test cases. Then, T lines follow. Each
line consists of a single integer N -
the length of a palindrome.

1 Like

In the input file, first line represents the number of test cases. Then there are t lines which contains the number n.
eg.

    5
    1
    2
    3
    4
    5

Here first number 5 is telling that there are 5 numbers which represents the input. So, input starts from 1 then 2 and so on and you have to answer for these five numbers i.e.1,2,3,4,5

1 Like
//