hossz = int(input())
a = list(set(input().split(' ')))
a.remove('_')
kezd = len(a)
x, k, b = 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 | Runtime error | 17ms | 2916 KiB | ||||
2 | Runtime error | 17ms | 2916 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Runtime error | 17ms | 2788 KiB | ||||
4 | Runtime error | 17ms | 3176 KiB | ||||
5 | Runtime error | 17ms | 2916 KiB | ||||
subtask3 | 0/20 | ||||||
6 | Runtime error | 17ms | 2956 KiB | ||||
7 | Runtime error | 17ms | 2960 KiB | ||||
8 | Runtime error | 17ms | 2956 KiB | ||||
9 | Runtime error | 17ms | 3044 KiB | ||||
10 | Runtime error | 17ms | 2916 KiB | ||||
11 | Runtime error | 17ms | 2916 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Runtime error | 17ms | 2916 KiB | ||||
13 | Runtime error | 17ms | 2916 KiB | ||||
14 | Runtime error | 17ms | 2992 KiB | ||||
15 | Runtime error | 17ms | 3064 KiB | ||||
16 | Runtime error | 17ms | 2936 KiB | ||||
17 | Runtime error | 17ms | 2936 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Runtime error | 17ms | 2916 KiB | ||||
19 | Runtime error | 17ms | 2916 KiB | ||||
20 | Runtime error | 17ms | 3004 KiB | ||||
21 | Runtime error | 17ms | 3052 KiB | ||||
22 | Runtime error | 17ms | 2960 KiB | ||||
23 | Runtime error | 17ms | 2960 KiB | ||||
24 | Runtime error | 17ms | 2960 KiB |