import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] arr1 = new int[10];
int[] arr2 = new int[42];
int count = 0;
for (int i = 0; i < arr1.length; i++) {
arr1[i] = sc.nextInt();
}
for (int j = 0; j < arr1.length; j++) {
int i = arr1[j]%42;
arr2[i]++;
}
for (int k = 0; k < arr2.length; k++) {
if (arr2[k] != 0) {
count++;
}
}
System.out.print(count);
}
}
728x90
반응형
'매일코테' 카테고리의 다른 글
백준 4단계 no. 6 (0) | 2022.07.22 |
---|---|
백준 4단계 no.5 (0) | 2022.07.22 |
백준 4단계 no.3 (0) | 2022.07.22 |
백준 4단계 no.2 (0) | 2022.07.22 |
백준 4단계 no.1 (0) | 2022.07.22 |