11567 | 2024-10-27 01:11:35 | balint | Legnagyobb téglalap | python3 | Runtime error 0/100 | 94ms | 15444 KiB |
import math
def main():
N = int(input())
nums = sorted(map(int, input().split()), reverse=True)
sides = []
for i in range(N):
if nums[i] == nums[i+1]:
sides.append(nums[i])
if len(sides) == 2:
print(math.prod(sides))
return
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 3128 KiB | ||||
2 | Runtime error | 16ms | 3128 KiB | ||||
3 | Accepted | 16ms | 3320 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Accepted | 16ms | 2964 KiB | ||||
5 | Accepted | 14ms | 3060 KiB | ||||
6 | Wrong answer | 16ms | 3024 KiB | ||||
7 | Runtime error | 16ms | 3128 KiB | ||||
8 | Runtime error | 16ms | 3128 KiB | ||||
subtask3 | 0/10 | ||||||
9 | Wrong answer | 14ms | 3368 KiB | ||||
10 | Accepted | 16ms | 3324 KiB | ||||
11 | Accepted | 16ms | 3128 KiB | ||||
12 | Accepted | 16ms | 3320 KiB | ||||
13 | Accepted | 32ms | 5044 KiB | ||||
14 | Accepted | 37ms | 5016 KiB | ||||
subtask4 | 0/15 | ||||||
15 | Accepted | 17ms | 3068 KiB | ||||
16 | Accepted | 16ms | 3128 KiB | ||||
17 | Runtime error | 16ms | 3320 KiB | ||||
18 | Runtime error | 16ms | 3316 KiB | ||||
19 | Wrong answer | 16ms | 3128 KiB | ||||
20 | Accepted | 16ms | 3124 KiB | ||||
21 | Accepted | 16ms | 2932 KiB | ||||
22 | Wrong answer | 16ms | 3128 KiB | ||||
23 | Accepted | 17ms | 3128 KiB | ||||
24 | Wrong answer | 16ms | 3212 KiB | ||||
subtask5 | 0/20 | ||||||
25 | Wrong answer | 17ms | 3264 KiB | ||||
26 | Accepted | 18ms | 3540 KiB | ||||
27 | Wrong answer | 17ms | 3636 KiB | ||||
28 | Accepted | 18ms | 3664 KiB | ||||
29 | Accepted | 19ms | 3644 KiB | ||||
30 | Accepted | 18ms | 3860 KiB | ||||
31 | Accepted | 18ms | 3632 KiB | ||||
32 | Accepted | 18ms | 3632 KiB | ||||
subtask6 | 0/15 | ||||||
33 | Wrong answer | 16ms | 2944 KiB | ||||
34 | Accepted | 54ms | 15148 KiB | ||||
35 | Runtime error | 59ms | 15240 KiB | ||||
36 | Accepted | 54ms | 15348 KiB | ||||
37 | Accepted | 50ms | 15276 KiB | ||||
38 | Accepted | 50ms | 15300 KiB | ||||
39 | Accepted | 46ms | 15288 KiB | ||||
40 | Accepted | 18ms | 4252 KiB | ||||
41 | Wrong answer | 50ms | 15288 KiB | ||||
subtask7 | 0/30 | ||||||
42 | Accepted | 70ms | 14708 KiB | ||||
43 | Accepted | 82ms | 15408 KiB | ||||
44 | Runtime error | 94ms | 15400 KiB | ||||
45 | Accepted | 76ms | 15436 KiB | ||||
46 | Wrong answer | 81ms | 15444 KiB | ||||
47 | Accepted | 76ms | 15312 KiB | ||||
48 | Wrong answer | 75ms | 15232 KiB | ||||
49 | Runtime error | 90ms | 15288 KiB | ||||
50 | Wrong answer | 74ms | 15408 KiB | ||||
51 | Wrong answer | 74ms | 15156 KiB |