Medium
Running Maximum With itertools
Read integers and print the running maximum on one line using
itertools.accumulate(nums, max).Input
Integers separated by spaces.
Output
One line.
Sample 1
Input
3 1 4 1 5 9 2
Output
3 3 4 4 5 9 9
Sample 2
Input
5
Output
5
Output appears here