N = int(input())
szó = list(input().replace(" ", ""))
abc = 26
hianyzo_betuk = szó.count("_")
ossz = 1
betuk = {}
for betu in szó:
if betu == "_":
continue
if betu not in betuk:
betuk[betu] = 1
else:
betuk[betu] += 1
abc -= len(betuk)
for i in range(hianyzo_betuk, 0, -1):
ossz *= abc
abc -= 1
print(ossz)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 18ms | 11768 KiB | ||||
2 | Accepted | 17ms | 12192 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 12020 KiB | ||||
4 | Accepted | 17ms | 12368 KiB | ||||
5 | Accepted | 17ms | 12640 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 12976 KiB | ||||
7 | Accepted | 17ms | 13056 KiB | ||||
8 | Accepted | 17ms | 12952 KiB | ||||
9 | Accepted | 17ms | 13376 KiB | ||||
10 | Accepted | 16ms | 13336 KiB | ||||
11 | Accepted | 17ms | 13380 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 17ms | 13720 KiB | ||||
13 | Accepted | 17ms | 14028 KiB | ||||
14 | Accepted | 17ms | 14368 KiB | ||||
15 | Accepted | 17ms | 14052 KiB | ||||
16 | Accepted | 16ms | 14176 KiB | ||||
17 | Accepted | 17ms | 14200 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 17ms | 14260 KiB | ||||
19 | Accepted | 17ms | 14284 KiB | ||||
20 | Accepted | 17ms | 14524 KiB | ||||
21 | Accepted | 16ms | 14440 KiB | ||||
22 | Accepted | 17ms | 14304 KiB | ||||
23 | Accepted | 17ms | 14360 KiB | ||||
24 | Accepted | 17ms | 14664 KiB |