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 | 2988 KiB | ||||
2 | Runtime error | 17ms | 2916 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Runtime error | 17ms | 2916 KiB | ||||
4 | Runtime error | 17ms | 3048 KiB | ||||
5 | Runtime error | 17ms | 2916 KiB | ||||
subtask3 | 0/20 | ||||||
6 | Runtime error | 17ms | 2916 KiB | ||||
7 | Runtime error | 17ms | 3056 KiB | ||||
8 | Runtime error | 17ms | 2916 KiB | ||||
9 | Runtime error | 17ms | 3064 KiB | ||||
10 | Runtime error | 17ms | 2788 KiB | ||||
11 | Runtime error | 17ms | 3064 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Runtime error | 17ms | 2916 KiB | ||||
13 | Runtime error | 17ms | 3052 KiB | ||||
14 | Runtime error | 17ms | 2916 KiB | ||||
15 | Runtime error | 18ms | 3192 KiB | ||||
16 | Runtime error | 17ms | 2940 KiB | ||||
17 | Runtime error | 17ms | 2920 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Runtime error | 17ms | 2916 KiB | ||||
19 | Runtime error | 17ms | 3052 KiB | ||||
20 | Runtime error | 17ms | 3044 KiB | ||||
21 | Runtime error | 17ms | 3192 KiB | ||||
22 | Runtime error | 17ms | 3100 KiB | ||||
23 | Runtime error | 17ms | 2916 KiB | ||||
24 | Runtime error | 17ms | 3052 KiB |