Playground/자바문제집
[백준] 3052번
미숫가루설탕많이
2023. 1. 20. 22:46
import java.util.HashSet;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
HashSet<Integer> result = new HashSet<>();
for (int i = 0; i < 10; i++) {
result.add(sc.nextInt() % 42);
}
sc.close();
System.out.println(result.size());
}
}