0の前の最大値

数のストリームが与えられたとき、プログラムは最初の0に到達するまでの最大の数を出力しなければなりません。

入力

出力

2 6 1 9 43 88 9 0 49 100

88

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue