Odd numbers
Given a segment [l; r], your task is to find all the odd numbers in descending order.
The input of the program contains 2 numbers l and r.
The program should print all the odd numbers in that range separated by a space in descending order (l and r including if they are odd).
Input | Output |
|---|---|
1 | 5 3 1 |
1 | 5 3 1 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB