나머지(3052)
2577과 비슷한 문제
Last updated
2577과 비슷한 문제
Last updated
1042
84
252
420
840
126
42
84
420
1261import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int rest[] = new int[10];
int count = 0;
for (int i = 0; i < 10; i++) {
rest[i] = sc.nextInt()%42;
}
for (int i=0; i<10; i++) {
int tmp = 0;
for (int j = i+1; j < 10; j++) {
if(rest[i] == rest[j]){
tmp++;
}
}
if(tmp == 0){
count++;
}
}
System.out.println(count);
}
}