1937 | 2022-12-12 08:45:17 | CodeBreakers | Szózat | python3 | Wrong answer 60/100 | 18ms | 13644 KiB |
n = int(input())
l = input()
abc = 26
t = l.split()
a = 0
b = 0
veg = 1
for i in range(len(t)-1, -1, -1):
if t[i] != "_":
a += 1
else:
b += 1
veg = abc-a
for i in range(b-1, 0, -1):
veg = (veg-i)*veg
print(veg)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11028 KiB | ||||
2 | Accepted | 17ms | 11324 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 11536 KiB | ||||
4 | Accepted | 17ms | 11544 KiB | ||||
5 | Accepted | 17ms | 11916 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 11780 KiB | ||||
7 | Accepted | 17ms | 11844 KiB | ||||
8 | Accepted | 18ms | 11896 KiB | ||||
9 | Accepted | 17ms | 12080 KiB | ||||
10 | Accepted | 17ms | 11984 KiB | ||||
11 | Accepted | 17ms | 12120 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 18ms | 12496 KiB | ||||
13 | Accepted | 17ms | 12624 KiB | ||||
14 | Accepted | 18ms | 12840 KiB | ||||
15 | Accepted | 18ms | 12792 KiB | ||||
16 | Accepted | 17ms | 13084 KiB | ||||
17 | Accepted | 17ms | 13076 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Wrong answer | 17ms | 13096 KiB | ||||
19 | Wrong answer | 17ms | 13084 KiB | ||||
20 | Wrong answer | 17ms | 13096 KiB | ||||
21 | Wrong answer | 17ms | 13388 KiB | ||||
22 | Wrong answer | 17ms | 13424 KiB | ||||
23 | Wrong answer | 17ms | 13644 KiB | ||||
24 | Wrong answer | 17ms | 13536 KiB |