110632024-07-05 16:57:22probaSzózatpython3Runtime error 0/10017ms3176 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 error17ms2916 KiB
2Runtime error17ms2916 KiB
subtask20/10
3Runtime error17ms2788 KiB
4Runtime error17ms3176 KiB
5Runtime error17ms2916 KiB
subtask30/20
6Runtime error17ms2956 KiB
7Runtime error17ms2960 KiB
8Runtime error17ms2956 KiB
9Runtime error17ms3044 KiB
10Runtime error17ms2916 KiB
11Runtime error17ms2916 KiB
subtask40/30
12Runtime error17ms2916 KiB
13Runtime error17ms2916 KiB
14Runtime error17ms2992 KiB
15Runtime error17ms3064 KiB
16Runtime error17ms2936 KiB
17Runtime error17ms2936 KiB
subtask50/40
18Runtime error17ms2916 KiB
19Runtime error17ms2916 KiB
20Runtime error17ms3004 KiB
21Runtime error17ms3052 KiB
22Runtime error17ms2960 KiB
23Runtime error17ms2960 KiB
24Runtime error17ms2960 KiB