정답
package A0study;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class p3052_나머지 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 중복을 허용하지 않는 자료구조 set
Set<Integer> set = new HashSet<>();
for(int i=0; i<10; i++) {
int temp = sc.nextInt() % 42;
set.add(temp);
}
System.out.println(set.size());
}
}