hossz = int(input())
a = list(set(input().split(' ')))
kezd = len(a)-1
x, k = 1, 26-kezd
for i in range(kezd, hossz):
x *= k
k -= 1
print(x)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2992 KiB | ||||
2 | Accepted | 17ms | 2976 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 2876 KiB | ||||
4 | Accepted | 17ms | 3104 KiB | ||||
5 | Accepted | 18ms | 3100 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 3044 KiB | ||||
7 | Accepted | 17ms | 2960 KiB | ||||
8 | Accepted | 17ms | 2972 KiB | ||||
9 | Accepted | 17ms | 2844 KiB | ||||
10 | Accepted | 17ms | 2928 KiB | ||||
11 | Accepted | 17ms | 2820 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 17ms | 2812 KiB | ||||
13 | Accepted | 17ms | 2916 KiB | ||||
14 | Accepted | 17ms | 2960 KiB | ||||
15 | Accepted | 17ms | 2960 KiB | ||||
16 | Accepted | 17ms | 2916 KiB | ||||
17 | Accepted | 17ms | 2920 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 18ms | 3080 KiB | ||||
19 | Accepted | 18ms | 3008 KiB | ||||
20 | Accepted | 17ms | 2916 KiB | ||||
21 | Accepted | 17ms | 2936 KiB | ||||
22 | Accepted | 17ms | 2844 KiB | ||||
23 | Accepted | 17ms | 2916 KiB | ||||
24 | Accepted | 17ms | 3064 KiB |