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)+1, 26-N+1, -1):
#print(i)
out *= i
print(out)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 17ms | 11036 KiB | ||||
2 | Wrong answer | 16ms | 11524 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 16ms | 11576 KiB | ||||
4 | Wrong answer | 16ms | 11676 KiB | ||||
5 | Wrong answer | 16ms | 11716 KiB | ||||
subtask3 | 0/20 | ||||||
6 | Wrong answer | 16ms | 11880 KiB | ||||
7 | Wrong answer | 16ms | 11924 KiB | ||||
8 | Wrong answer | 16ms | 12324 KiB | ||||
9 | Wrong answer | 16ms | 12252 KiB | ||||
10 | Wrong answer | 16ms | 12376 KiB | ||||
11 | Wrong answer | 17ms | 12168 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Wrong answer | 16ms | 12220 KiB | ||||
13 | Wrong answer | 17ms | 12300 KiB | ||||
14 | Wrong answer | 17ms | 12760 KiB | ||||
15 | Wrong answer | 17ms | 12828 KiB | ||||
16 | Wrong answer | 17ms | 13148 KiB | ||||
17 | Wrong answer | 17ms | 12996 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Wrong answer | 17ms | 13068 KiB | ||||
19 | Wrong answer | 17ms | 13084 KiB | ||||
20 | Wrong answer | 17ms | 13212 KiB | ||||
21 | Wrong answer | 17ms | 13196 KiB | ||||
22 | Wrong answer | 17ms | 13444 KiB | ||||
23 | Wrong answer | 17ms | 13620 KiB | ||||
24 | Wrong answer | 17ms | 13516 KiB |