19372022-12-12 08:45:17CodeBreakersSzózatpython3Wrong answer 60/10018ms13644 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)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11028 KiB
2Accepted17ms11324 KiB
subtask210/10
3Accepted17ms11536 KiB
4Accepted17ms11544 KiB
5Accepted17ms11916 KiB
subtask320/20
6Accepted17ms11780 KiB
7Accepted17ms11844 KiB
8Accepted18ms11896 KiB
9Accepted17ms12080 KiB
10Accepted17ms11984 KiB
11Accepted17ms12120 KiB
subtask430/30
12Accepted18ms12496 KiB
13Accepted17ms12624 KiB
14Accepted18ms12840 KiB
15Accepted18ms12792 KiB
16Accepted17ms13084 KiB
17Accepted17ms13076 KiB
subtask50/40
18Wrong answer17ms13096 KiB
19Wrong answer17ms13084 KiB
20Wrong answer17ms13096 KiB
21Wrong answer17ms13388 KiB
22Wrong answer17ms13424 KiB
23Wrong answer17ms13644 KiB
24Wrong answer17ms13536 KiB