#K3441. Electricity Consumption Analysis

    ID: 25303 Type: Default 1000ms 256MiB

Electricity Consumption Analysis

Electricity Consumption Analysis

In this problem, you are given T test cases. In each test case, you are provided with an integer N followed by N non-negative integers representing the electricity consumption for N days. Your task is to determine the maximum (i.e. highest) electricity consumption for each test case.

Mathematically, for each test case the answer is:

\(max(c_1, c_2, \ldots, c_N)\)

Please note that the input will be provided via standard input (stdin) and the output must be printed to standard output (stdout), with each result on a separate line.

inputFormat

The input starts with an integer T representing the number of test cases.

For each test case:

  • An integer N which is the number of days.
  • A line containing N space-separated integers denoting the daily electricity consumption.

The inputs are read from stdin.

outputFormat

For each test case, output a single line containing the highest electricity consumption.

The outputs are written to stdout.

## sample
2
5
10 20 5 30 25
3
7 12 6
30

12

</p>