HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


003. 50358 - Series of Odd Numbers

Guest
• Discussion of problem (1)

Volume problems

• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly Pay
• 120. 50426 - Calculating Sales
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50316 - Population Bar Chart
• 50336 - Buying Carpets
• 50295 - Weighted Average
• 003. 50358 - Series of Odd Num...
• 005. 50297 - Divisible By Five
• 012. 50589 - The Number of Eggs Sold
• 030. 50584 - Total invoice amount
• 050. 50450 - Last Appereance of a ...
• 060. 50362 - Pythagorean Numbers
• 060. Problem 2
• 065. 50394 - Water Bills
• 070. 50465 - How many students h...

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