Maximum before 0
Given a stream of numbers, the program has to print the maximum number before reaching the first 0.
Input | Output |
|---|---|
2 | 88 |
Constraints
Time limit: 1.6 seconds
Memory limit: 512 MB
Output limit: 1 MB
Given a stream of numbers, the program has to print the maximum number before reaching the first 0.
Input | Output |
|---|---|
2 | 88 |
Time limit: 1.6 seconds
Memory limit: 512 MB
Output limit: 1 MB