Play with numbers
John had his first programming class today and he was taught the basics of programming.He was given a task which he had to solve it and bring the solution in the next class.He kept trying but couldn't solve the problem. You are his friend and he has asked you for help.
You are given 'N' positive integers, and an integer 'K'.You are to print the number of distinct integers smaller then 'K' such that the number is an odd number.
First line contains two integers N and K.
Seconds line contains N space separated integers ai.
Print the required answer .
0 ≤ N ≤ 10^6
0 ≤ ai ≤10^9
0 ≤K ≤ 10^9
1 2 3 6
|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, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions