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 | 10976 KiB | ||||
2 | Wrong answer | 16ms | 11236 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 16ms | 11656 KiB | ||||
4 | Wrong answer | 17ms | 11640 KiB | ||||
5 | Wrong answer | 17ms | 11892 KiB | ||||
subtask3 | 0/20 | ||||||
6 | Wrong answer | 17ms | 12080 KiB | ||||
7 | Wrong answer | 16ms | 11996 KiB | ||||
8 | Wrong answer | 17ms | 12184 KiB | ||||
9 | Wrong answer | 17ms | 12524 KiB | ||||
10 | Wrong answer | 17ms | 12808 KiB | ||||
11 | Wrong answer | 17ms | 12816 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Wrong answer | 17ms | 13072 KiB | ||||
13 | Wrong answer | 17ms | 13072 KiB | ||||
14 | Wrong answer | 17ms | 13136 KiB | ||||
15 | Wrong answer | 17ms | 13192 KiB | ||||
16 | Wrong answer | 17ms | 13344 KiB | ||||
17 | Wrong answer | 17ms | 13332 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Wrong answer | 17ms | 13452 KiB | ||||
19 | Wrong answer | 17ms | 13364 KiB | ||||
20 | Wrong answer | 17ms | 13216 KiB | ||||
21 | Wrong answer | 17ms | 13448 KiB | ||||
22 | Wrong answer | 16ms | 13452 KiB | ||||
23 | Wrong answer | 16ms | 13532 KiB | ||||
24 | Wrong answer | 17ms | 13524 KiB |