Submit | All submissions | Best solutions | Back to list |
UTP_Q1 - Find Me! |
Develop a Python code to read a series of integers with 99 as a sentinel value
Input
The sentinal value 99 can appear at the beginning, in the middle, in the end of a series of integers
Output
If the sentinal value is at the beginning of the integer series, no integer will be displayed. If the sentinal appears in the middle or at the end of the integer series, all integers preceding the sentinal value in the series will be displayed. If the sentinal value is not in the list, all integer series will be displayed.
Example
Input: 1 2 88 45 99 0 12 Output: 1 2 88 45
Added by: | jbA |
Date: | 2021-06-01 |
Time limit: | 2s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | NCSHARP JULIA PYTHON3 |