N = int(input())
szo = input()
_counter = 0
for i in szo:
if i == "_":
_counter += 1
#print(_counter)
out = 1
for i in range(26 - (N - _counter), 26-N, -1):
#print(i)
out *= i
print(out)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 10816 KiB | ||||
2 | Accepted | 17ms | 11168 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 11244 KiB | ||||
4 | Accepted | 16ms | 11612 KiB | ||||
5 | Accepted | 17ms | 11620 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 12124 KiB | ||||
7 | Accepted | 16ms | 12172 KiB | ||||
8 | Accepted | 17ms | 12164 KiB | ||||
9 | Accepted | 16ms | 12192 KiB | ||||
10 | Accepted | 17ms | 12344 KiB | ||||
11 | Accepted | 17ms | 12536 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 17ms | 12680 KiB | ||||
13 | Accepted | 17ms | 12652 KiB | ||||
14 | Accepted | 17ms | 12724 KiB | ||||
15 | Accepted | 16ms | 12740 KiB | ||||
16 | Accepted | 17ms | 12844 KiB | ||||
17 | Accepted | 17ms | 13032 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 17ms | 13016 KiB | ||||
19 | Accepted | 16ms | 13008 KiB | ||||
20 | Accepted | 17ms | 12884 KiB | ||||
21 | Accepted | 17ms | 12924 KiB | ||||
22 | Accepted | 17ms | 13116 KiB | ||||
23 | Accepted | 17ms | 13112 KiB | ||||
24 | Accepted | 17ms | 13280 KiB |