23502023-01-10 22:27:11kristofSzózatpython3Wrong answer 0/10017ms13532 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 answer17ms10976 KiB
2Wrong answer16ms11236 KiB
subtask20/10
3Wrong answer16ms11656 KiB
4Wrong answer17ms11640 KiB
5Wrong answer17ms11892 KiB
subtask30/20
6Wrong answer17ms12080 KiB
7Wrong answer16ms11996 KiB
8Wrong answer17ms12184 KiB
9Wrong answer17ms12524 KiB
10Wrong answer17ms12808 KiB
11Wrong answer17ms12816 KiB
subtask40/30
12Wrong answer17ms13072 KiB
13Wrong answer17ms13072 KiB
14Wrong answer17ms13136 KiB
15Wrong answer17ms13192 KiB
16Wrong answer17ms13344 KiB
17Wrong answer17ms13332 KiB
subtask50/40
18Wrong answer17ms13452 KiB
19Wrong answer17ms13364 KiB
20Wrong answer17ms13216 KiB
21Wrong answer17ms13448 KiB
22Wrong answer16ms13452 KiB
23Wrong answer16ms13532 KiB
24Wrong answer17ms13524 KiB