22982023-01-09 20:58:45neszbalSzózatpython3Wrong answer 0/10017ms13620 KiB
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)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms11036 KiB
2Wrong answer16ms11524 KiB
subtask20/10
3Wrong answer16ms11576 KiB
4Wrong answer16ms11676 KiB
5Wrong answer16ms11716 KiB
subtask30/20
6Wrong answer16ms11880 KiB
7Wrong answer16ms11924 KiB
8Wrong answer16ms12324 KiB
9Wrong answer16ms12252 KiB
10Wrong answer16ms12376 KiB
11Wrong answer17ms12168 KiB
subtask40/30
12Wrong answer16ms12220 KiB
13Wrong answer17ms12300 KiB
14Wrong answer17ms12760 KiB
15Wrong answer17ms12828 KiB
16Wrong answer17ms13148 KiB
17Wrong answer17ms12996 KiB
subtask50/40
18Wrong answer17ms13068 KiB
19Wrong answer17ms13084 KiB
20Wrong answer17ms13212 KiB
21Wrong answer17ms13196 KiB
22Wrong answer17ms13444 KiB
23Wrong answer17ms13620 KiB
24Wrong answer17ms13516 KiB