about summary refs log tree commit diff
path: root/COCI/2006-2007/contest1/modulo.c
blob: 14c0556900a68444e1f4fd81de62509486112780 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

int main()
{
	char i, mod[42] = {};
	short a;

	for (i = 0; i < 10; i++) {
		scanf("%hd", &a);
		mod[a % 42]++;
	}

	a = 0;
	for (i = 0; i < 42; i++)
		if (mod[i])
			a++;

	printf("%hd\n", a);

	return 0;
}