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 | 11032 KiB | ||||
2 | Accepted | 16ms | 11120 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 16ms | 11440 KiB | ||||
4 | Accepted | 16ms | 11572 KiB | ||||
5 | Accepted | 17ms | 11932 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 12400 KiB | ||||
7 | Accepted | 16ms | 12476 KiB | ||||
8 | Accepted | 17ms | 12420 KiB | ||||
9 | Accepted | 17ms | 12608 KiB | ||||
10 | Accepted | 17ms | 12500 KiB | ||||
11 | Accepted | 16ms | 13016 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 16ms | 13056 KiB | ||||
13 | Accepted | 17ms | 13300 KiB | ||||
14 | Accepted | 17ms | 13364 KiB | ||||
15 | Accepted | 17ms | 13624 KiB | ||||
16 | Accepted | 17ms | 13672 KiB | ||||
17 | Accepted | 16ms | 13560 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 16ms | 13832 KiB | ||||
19 | Accepted | 16ms | 13632 KiB | ||||
20 | Accepted | 17ms | 13512 KiB | ||||
21 | Accepted | 17ms | 13652 KiB | ||||
22 | Accepted | 16ms | 13568 KiB | ||||
23 | Accepted | 16ms | 13504 KiB | ||||
24 | Accepted | 17ms | 13540 KiB |