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:||ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.3.2, CPP 6.3, CPP14, CS2, D, ERL, FORT, FS, GO, HASK, ICK, ICON, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, NODEJS, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYPY, PYTH, PYTH 3.5, RUBY, SCALA, SCM chicken, SCM guile, SCM qobi, ST, TCL, WSPC|
Fetching successful submissions
If you are still having problems, see a sample solution here.