Submit | All submissions | Best solutions | Back to list |
PYTHON01 - Python junior testing his keyboard |
Mostafa is a junior Python programmer, he is not really a programmer, but he is learning.
He started submitting scripts on SPOJ, but he is frustrated by the input function, and he don't know why SPOJ keep giving him (runtime error NZEC).
He want your help to read some numbers, and print them increased by 1
Input
There will be only 1 line (to make it easy for the junior programmer)
The line contains n numbers (ai) Where (1 <= n <= 1000) and (1 <= ai <=1000)
The numbers are separated by spaces
Output
You should output n numbers (bi), Where bi=ai+1
(Note: In this problem, you can print the numbers separated by a space or a new line)
Example 1
Input: 1 Output: 2
Example 2
Input: 9 8 7 6 5 4 3 2 1 Output: 10
9
8
7
6
5
4
3
2
Example 3
Input: 123 456 999 1000 Output: 124
457
1000
1001
Added by: | Mostafa 36a2 |
Date: | 2022-05-31 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | BASH PYTHON PYPY PYPY3 PYTHON3 PY_NBC |
Resource: | keyboard |