about summary refs log tree commit diff
path: root/NTU/troxe.c
blob: 6642157cfe0f2bd69780c9589264627d2f804275 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>

int main()
{
	long k, i, x, t[7990] = {}, p;

	scanf("%ld", &k);
	for (i = 0; i < k; i++) {
		scanf("%ld", &x);
		t[x - 10102010]++;
	}

	x = 0;
	for (i = 0; i < 7990; i++) {
		p = t[i];
		if (p) {
			x += 100;
			if (p > 5)
				x += p - 5;
		}
	}

	printf("%ld\n", x);

	return 0;
}