hossz = int(input())
a = list(set(input().split(' ')))
a.remove('_')
x, k = 1, 26-len(a)
for i in range(len(a), hossz):
x *= k
k -= 1
print(x)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2916 KiB | ||||
2 | Accepted | 17ms | 2888 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 2916 KiB | ||||
4 | Accepted | 17ms | 2916 KiB | ||||
5 | Accepted | 17ms | 2916 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 3064 KiB | ||||
7 | Accepted | 17ms | 2916 KiB | ||||
8 | Accepted | 17ms | 3060 KiB | ||||
9 | Accepted | 17ms | 3052 KiB | ||||
10 | Accepted | 17ms | 2916 KiB | ||||
11 | Accepted | 17ms | 3064 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 17ms | 2948 KiB | ||||
13 | Accepted | 17ms | 2988 KiB | ||||
14 | Accepted | 18ms | 2964 KiB | ||||
15 | Accepted | 17ms | 2916 KiB | ||||
16 | Accepted | 17ms | 2916 KiB | ||||
17 | Accepted | 17ms | 2928 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 18ms | 2968 KiB | ||||
19 | Accepted | 17ms | 2916 KiB | ||||
20 | Accepted | 17ms | 2964 KiB | ||||
21 | Accepted | 17ms | 3148 KiB | ||||
22 | Accepted | 17ms | 2844 KiB | ||||
23 | Accepted | 17ms | 2916 KiB | ||||
24 | Accepted | 17ms | 2916 KiB |