11183 | 2024-07-15 18:45:30 | proba | Legnagyobb téglalap | python3 | Wrong answer 90/100 | 145ms | 15180 KiB |
N = input()
sor = [int(i) for i in input().split(' ')]
sor.sort(reverse=True)
h = len(sor)
i, a, b, ok = 0, None, None, True
while i < h-3:
if sor[i] == sor[i+1] and a == None:
a = sor[i]
i += 1
elif sor[i] == sor[i+1] and b == None:
print(a*sor[i])
ok = False
break
i += 1
if ok:
print(0)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 18ms | 2920 KiB | ||||
2 | Accepted | 17ms | 3044 KiB | ||||
3 | Wrong answer | 17ms | 2916 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 18ms | 3044 KiB | ||||
5 | Wrong answer | 17ms | 2952 KiB | ||||
6 | Accepted | 17ms | 3064 KiB | ||||
7 | Accepted | 17ms | 2916 KiB | ||||
8 | Accepted | 17ms | 2924 KiB | ||||
subtask3 | 10/10 | ||||||
9 | Accepted | 17ms | 3044 KiB | ||||
10 | Accepted | 18ms | 2988 KiB | ||||
11 | Accepted | 17ms | 2936 KiB | ||||
12 | Accepted | 17ms | 3064 KiB | ||||
13 | Accepted | 41ms | 4752 KiB | ||||
14 | Accepted | 46ms | 4900 KiB | ||||
subtask4 | 15/15 | ||||||
15 | Accepted | 17ms | 3076 KiB | ||||
16 | Accepted | 17ms | 3180 KiB | ||||
17 | Accepted | 17ms | 3044 KiB | ||||
18 | Accepted | 18ms | 2900 KiB | ||||
19 | Accepted | 17ms | 3044 KiB | ||||
20 | Accepted | 17ms | 3044 KiB | ||||
21 | Accepted | 17ms | 3044 KiB | ||||
22 | Accepted | 17ms | 3044 KiB | ||||
23 | Accepted | 17ms | 2816 KiB | ||||
24 | Accepted | 17ms | 3064 KiB | ||||
subtask5 | 20/20 | ||||||
25 | Accepted | 17ms | 3172 KiB | ||||
26 | Accepted | 21ms | 3704 KiB | ||||
27 | Accepted | 24ms | 3556 KiB | ||||
28 | Accepted | 23ms | 3624 KiB | ||||
29 | Accepted | 24ms | 3484 KiB | ||||
30 | Accepted | 21ms | 3492 KiB | ||||
31 | Accepted | 21ms | 3612 KiB | ||||
32 | Accepted | 19ms | 3576 KiB | ||||
subtask6 | 15/15 | ||||||
33 | Accepted | 18ms | 3012 KiB | ||||
34 | Accepted | 59ms | 14752 KiB | ||||
35 | Accepted | 114ms | 14840 KiB | ||||
36 | Accepted | 108ms | 14524 KiB | ||||
37 | Accepted | 86ms | 14700 KiB | ||||
38 | Accepted | 65ms | 14748 KiB | ||||
39 | Accepted | 56ms | 14700 KiB | ||||
40 | Accepted | 21ms | 4344 KiB | ||||
41 | Accepted | 57ms | 14624 KiB | ||||
subtask7 | 30/30 | ||||||
42 | Accepted | 76ms | 14232 KiB | ||||
43 | Accepted | 82ms | 14840 KiB | ||||
44 | Accepted | 145ms | 14748 KiB | ||||
45 | Accepted | 97ms | 14744 KiB | ||||
46 | Accepted | 94ms | 14700 KiB | ||||
47 | Accepted | 96ms | 14700 KiB | ||||
48 | Accepted | 83ms | 14852 KiB | ||||
49 | Accepted | 142ms | 14748 KiB | ||||
50 | Accepted | 86ms | 14772 KiB | ||||
51 | Accepted | 86ms | 15180 KiB |