110642024-07-05 16:57:48probaSzózatpython3Runtime error 0/10018ms3192 KiB
hossz = int(input())
a = list(set(input().split(' ')))
a.remove('_')
kezd = len(a)
x, k, b = 1, 26-kezd
for i in range(kezd, hossz):
    x *= k
    k -= 1
print(x)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms2988 KiB
2Runtime error17ms2916 KiB
subtask20/10
3Runtime error17ms2916 KiB
4Runtime error17ms3048 KiB
5Runtime error17ms2916 KiB
subtask30/20
6Runtime error17ms2916 KiB
7Runtime error17ms3056 KiB
8Runtime error17ms2916 KiB
9Runtime error17ms3064 KiB
10Runtime error17ms2788 KiB
11Runtime error17ms3064 KiB
subtask40/30
12Runtime error17ms2916 KiB
13Runtime error17ms3052 KiB
14Runtime error17ms2916 KiB
15Runtime error18ms3192 KiB
16Runtime error17ms2940 KiB
17Runtime error17ms2920 KiB
subtask50/40
18Runtime error17ms2916 KiB
19Runtime error17ms3052 KiB
20Runtime error17ms3044 KiB
21Runtime error17ms3192 KiB
22Runtime error17ms3100 KiB
23Runtime error17ms2916 KiB
24Runtime error17ms3052 KiB