n = int(input())
osszb = 26
sz = input().strip().split()
betu = n -sz.count("_")
osszb = osszb - n + sz.count("_")
o = 1
while n > betu:
o *= osszb
osszb -= 1
betu += 1
print(o)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11080 KiB | ||||
2 | Accepted | 17ms | 11192 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 11628 KiB | ||||
4 | Accepted | 17ms | 11408 KiB | ||||
5 | Accepted | 17ms | 12240 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 12472 KiB | ||||
7 | Accepted | 17ms | 12260 KiB | ||||
8 | Accepted | 17ms | 12792 KiB | ||||
9 | Accepted | 17ms | 12736 KiB | ||||
10 | Accepted | 17ms | 12528 KiB | ||||
11 | Accepted | 17ms | 13244 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 17ms | 12824 KiB | ||||
13 | Accepted | 17ms | 13140 KiB | ||||
14 | Accepted | 17ms | 13452 KiB | ||||
15 | Accepted | 17ms | 13308 KiB | ||||
16 | Accepted | 17ms | 13000 KiB | ||||
17 | Accepted | 17ms | 13304 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 17ms | 13628 KiB | ||||
19 | Accepted | 18ms | 13552 KiB | ||||
20 | Accepted | 17ms | 13720 KiB | ||||
21 | Accepted | 17ms | 13716 KiB | ||||
22 | Accepted | 18ms | 13984 KiB | ||||
23 | Accepted | 17ms | 13968 KiB | ||||
24 | Accepted | 17ms | 14100 KiB |