Medium
Chain Several Lines
Read n lines of integers. Use
itertools.chain.from_iterable to go through all the numbers as one stream and print their count, sum and maximum on one line.Input
n, then n lines.
Output
One line.
Sample 1
Input
2 1 2 3 4 5
Output
5 15 5
Sample 2
Input
1 7
Output
1 7 7
Output appears here