HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


003. 50358 - Series of Odd Numbers

Guest
• Discussion of problem (1)

Volume problems

• Reflektimi i pikes
• 50994 - The Most Crowded Station
• 51194 - The difference between max...
• 001. 50385 - From m to n
• 002. 50365 - Sum of the numbers f...
• 002. 50452 - Multiplication Table
• 002. 50554 - nth power of m
• 003. 50387 - Passengers in the Train
• 003. 50358 - Series of Odd Num...
• 004. 50424 - Area
• 004. 50522 - Multiplication Table - 2
• 005. 50297 - Divisible By Five
• 006. 50293 - Sum of odd numbers f...
• 007. 50401 - Sum of Odd Numbers
• 009. 50783 - The smallest number
• 010. 50782 - Max of N integers
• 012. 50352 - Selling Cows

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