ODDs In INTERVAL
All submissions for this problem are available.
Biswajit is fond of computer programming. He wants a quick solution to find odd numbers between a given closed interval. Help him out.
- The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.
- The first line of each test case contains two integer M & N denoting the number of start and end.
- For each test case, output a single line containing required numbers".
- 1 ≤ T ≤ 10
- 100 ≤ N-M ≤ 100000
Input: 2 1 3 5 15 Output: 1 3 5 7 9 11 13 15
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, SCM chicken, PYP3, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.