11184 | 2024-07-15 18:47:03 | proba | Legnagyobb téglalap | python3 | Wrong answer 90/100 | 150ms | 15036 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 and 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 | 3044 KiB | ||||
2 | Accepted | 17ms | 2916 KiB | ||||
3 | Wrong answer | 17ms | 3044 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 17ms | 3048 KiB | ||||
5 | Wrong answer | 18ms | 3196 KiB | ||||
6 | Accepted | 17ms | 3072 KiB | ||||
7 | Accepted | 17ms | 2984 KiB | ||||
8 | Accepted | 17ms | 3064 KiB | ||||
subtask3 | 10/10 | ||||||
9 | Accepted | 17ms | 3044 KiB | ||||
10 | Accepted | 17ms | 2984 KiB | ||||
11 | Accepted | 17ms | 3052 KiB | ||||
12 | Accepted | 17ms | 3044 KiB | ||||
13 | Accepted | 41ms | 5064 KiB | ||||
14 | Accepted | 50ms | 4880 KiB | ||||
subtask4 | 15/15 | ||||||
15 | Accepted | 17ms | 3044 KiB | ||||
16 | Accepted | 18ms | 3044 KiB | ||||
17 | Accepted | 17ms | 2952 KiB | ||||
18 | Accepted | 17ms | 3044 KiB | ||||
19 | Accepted | 17ms | 2944 KiB | ||||
20 | Accepted | 17ms | 2916 KiB | ||||
21 | Accepted | 17ms | 2916 KiB | ||||
22 | Accepted | 17ms | 3064 KiB | ||||
23 | Accepted | 17ms | 2844 KiB | ||||
24 | Accepted | 17ms | 3044 KiB | ||||
subtask5 | 20/20 | ||||||
25 | Accepted | 18ms | 3172 KiB | ||||
26 | Accepted | 20ms | 3484 KiB | ||||
27 | Accepted | 25ms | 3576 KiB | ||||
28 | Accepted | 23ms | 3556 KiB | ||||
29 | Accepted | 23ms | 3556 KiB | ||||
30 | Accepted | 21ms | 3556 KiB | ||||
31 | Accepted | 21ms | 3556 KiB | ||||
32 | Accepted | 19ms | 3556 KiB | ||||
subtask6 | 15/15 | ||||||
33 | Accepted | 18ms | 2956 KiB | ||||
34 | Accepted | 57ms | 14664 KiB | ||||
35 | Accepted | 119ms | 14764 KiB | ||||
36 | Accepted | 115ms | 14692 KiB | ||||
37 | Accepted | 92ms | 14600 KiB | ||||
38 | Accepted | 64ms | 14700 KiB | ||||
39 | Accepted | 54ms | 14704 KiB | ||||
40 | Accepted | 21ms | 4016 KiB | ||||
41 | Accepted | 59ms | 14772 KiB | ||||
subtask7 | 30/30 | ||||||
42 | Accepted | 78ms | 14280 KiB | ||||
43 | Accepted | 86ms | 14736 KiB | ||||
44 | Accepted | 150ms | 14704 KiB | ||||
45 | Accepted | 93ms | 14848 KiB | ||||
46 | Accepted | 90ms | 14704 KiB | ||||
47 | Accepted | 100ms | 14704 KiB | ||||
48 | Accepted | 86ms | 14704 KiB | ||||
49 | Accepted | 149ms | 14704 KiB | ||||
50 | Accepted | 86ms | 14624 KiB | ||||
51 | Accepted | 85ms | 15036 KiB |