My issue
My code
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
// your code goes here
int n=sc.nextInt();
for(int j=0;j<n;j++)
{
int dolls=sc.nextInt();
int count=0;
int dollType=0;
for(int i=0;i<dolls;i++)
{
dollType=sc.nextInt();
if(dollType%2!=0)
{
count++;
}
}
System.out.print(count);
}
}
}
Problem Link: MISSP Problem - CodeChef