hossz = int(input())
a = list(set(input().split(' ')))
kezd = len(a)-1
x = 1
for i in range(kezd, hossz):
x *= 26-i
print(x)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2916 KiB | ||||
2 | Accepted | 17ms | 2916 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 2916 KiB | ||||
4 | Accepted | 17ms | 2916 KiB | ||||
5 | Accepted | 17ms | 2916 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 17ms | 2916 KiB | ||||
7 | Accepted | 17ms | 2916 KiB | ||||
8 | Accepted | 17ms | 2960 KiB | ||||
9 | Accepted | 17ms | 2916 KiB | ||||
10 | Accepted | 17ms | 2916 KiB | ||||
11 | Accepted | 17ms | 2788 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 17ms | 2864 KiB | ||||
13 | Accepted | 17ms | 3088 KiB | ||||
14 | Accepted | 17ms | 2968 KiB | ||||
15 | Accepted | 17ms | 2944 KiB | ||||
16 | Accepted | 17ms | 2936 KiB | ||||
17 | Accepted | 17ms | 3064 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 17ms | 3044 KiB | ||||
19 | Accepted | 17ms | 2944 KiB | ||||
20 | Accepted | 17ms | 3064 KiB | ||||
21 | Accepted | 17ms | 3044 KiB | ||||
22 | Accepted | 17ms | 3052 KiB | ||||
23 | Accepted | 17ms | 3192 KiB | ||||
24 | Accepted | 17ms | 2916 KiB |