HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Sorting and sequences > problem:


50358 - Series of Odd Numbers

Guest
• Discussion of problem (1)

Section problems

• 50847 - The first m trains to leave
• 51002 - The most successful classes
• Word Puzzle
• 50740 - Service Time - 1
• 50750 - Service Time - 2
• 50347 - Selling Oranges
• 50758 - National Elections - Revisited
• 50754 - Team Standings
• 50358 - Series of Odd Numbers
• 50756 - Average of the Nth Student
• 50757 - National Elections - 1
• 50755- Top N Donors - 1
• 50752 - Student Groups
• 50753 - Average of the Nth Student
• 50751 - The biggest Minute
• 50998 - CEN112 Homework, quiz av...
• 50804 - Marathon

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan. Difficulty Beta

Write a program to print series of odd numbers starting from (m) and as long as the printed numbers are smaller than or equal to the given number (n).

Input specification
You will be given two integers (m, n) which are greater than 1 and are less than or equal to 100.000.   1 < m < n ≤ 100.000.

Output specification
The numbers will be space separated. And, you give endline after every hundreds. e.g.
        ... 97 99
        ... 197 199
        ... 297 299
        ...

Sample Input I
100 117

Sample Output I

101 103 105 107 109 111 113 115 117

Sample Input II
4 10

Sample Output II
5 7 9

Для отправки решений необходимо выполнить вход.

www.contester.ru