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
5 3 1
1 6
5 3 1
 

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