115672024-10-27 01:11:35balintLegnagyobb téglalappython3Runtime error 0/10094ms15444 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()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms3128 KiB
2Runtime error16ms3128 KiB
3Accepted16ms3320 KiB
subtask20/10
4Accepted16ms2964 KiB
5Accepted14ms3060 KiB
6Wrong answer16ms3024 KiB
7Runtime error16ms3128 KiB
8Runtime error16ms3128 KiB
subtask30/10
9Wrong answer14ms3368 KiB
10Accepted16ms3324 KiB
11Accepted16ms3128 KiB
12Accepted16ms3320 KiB
13Accepted32ms5044 KiB
14Accepted37ms5016 KiB
subtask40/15
15Accepted17ms3068 KiB
16Accepted16ms3128 KiB
17Runtime error16ms3320 KiB
18Runtime error16ms3316 KiB
19Wrong answer16ms3128 KiB
20Accepted16ms3124 KiB
21Accepted16ms2932 KiB
22Wrong answer16ms3128 KiB
23Accepted17ms3128 KiB
24Wrong answer16ms3212 KiB
subtask50/20
25Wrong answer17ms3264 KiB
26Accepted18ms3540 KiB
27Wrong answer17ms3636 KiB
28Accepted18ms3664 KiB
29Accepted19ms3644 KiB
30Accepted18ms3860 KiB
31Accepted18ms3632 KiB
32Accepted18ms3632 KiB
subtask60/15
33Wrong answer16ms2944 KiB
34Accepted54ms15148 KiB
35Runtime error59ms15240 KiB
36Accepted54ms15348 KiB
37Accepted50ms15276 KiB
38Accepted50ms15300 KiB
39Accepted46ms15288 KiB
40Accepted18ms4252 KiB
41Wrong answer50ms15288 KiB
subtask70/30
42Accepted70ms14708 KiB
43Accepted82ms15408 KiB
44Runtime error94ms15400 KiB
45Accepted76ms15436 KiB
46Wrong answer81ms15444 KiB
47Accepted76ms15312 KiB
48Wrong answer75ms15232 KiB
49Runtime error90ms15288 KiB
50Wrong answer74ms15408 KiB
51Wrong answer74ms15156 KiB