//Nayeem Shahriar Joy,Applied Physics & Electronic Engineering, University of Rajshahi.
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Joy{
public static void main(String[] args) {
// Get input from the user w/ sentinel logic
Scanner io = new Scanner(System.in);
Set<Integer>s=new HashSet<Integer>();
for(int i=1;i<=10;i++)
{
int a=io.nextInt();
s.add(a%42);
}
System.out.println(s.size());
}
}
No comments:
Post a Comment