11186 | 2024-07-15 20:35:37 | proba | Legnagyobb téglalap | python3 | Wrong answer 0/100 | 18ms | 3256 KiB |
#N = input()
sor = [int(i) for i in '2 4 4 2'.strip().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.count(sor[i]) > 3:
print(sor[i]**2)
ok = False
else:
if sor[i] == sor[i+1] and a == None:
a, j = sor[i], 0
while i+j < h-3 and sor[i+j] == a:
j += 1
i += j+1
print(i, sor[i])
if 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 | Wrong answer | 17ms | 3044 KiB | ||||
2 | Wrong answer | 17ms | 3044 KiB | ||||
3 | Wrong answer | 17ms | 3044 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 17ms | 3120 KiB | ||||
5 | Wrong answer | 17ms | 3044 KiB | ||||
6 | Wrong answer | 17ms | 3192 KiB | ||||
7 | Wrong answer | 17ms | 3172 KiB | ||||
8 | Wrong answer | 17ms | 2916 KiB | ||||
subtask3 | 0/10 | ||||||
9 | Wrong answer | 17ms | 3000 KiB | ||||
10 | Wrong answer | 18ms | 2976 KiB | ||||
11 | Wrong answer | 17ms | 3072 KiB | ||||
12 | Wrong answer | 17ms | 3044 KiB | ||||
13 | Wrong answer | 17ms | 3100 KiB | ||||
14 | Wrong answer | 17ms | 3048 KiB | ||||
subtask4 | 0/15 | ||||||
15 | Wrong answer | 17ms | 3112 KiB | ||||
16 | Wrong answer | 17ms | 3044 KiB | ||||
17 | Wrong answer | 17ms | 3192 KiB | ||||
18 | Wrong answer | 18ms | 3216 KiB | ||||
19 | Wrong answer | 17ms | 3088 KiB | ||||
20 | Wrong answer | 17ms | 2916 KiB | ||||
21 | Wrong answer | 17ms | 2916 KiB | ||||
22 | Wrong answer | 17ms | 3064 KiB | ||||
23 | Wrong answer | 18ms | 3080 KiB | ||||
24 | Wrong answer | 17ms | 3044 KiB | ||||
subtask5 | 0/20 | ||||||
25 | Wrong answer | 17ms | 3204 KiB | ||||
26 | Wrong answer | 17ms | 3088 KiB | ||||
27 | Wrong answer | 17ms | 3088 KiB | ||||
28 | Wrong answer | 17ms | 3044 KiB | ||||
29 | Wrong answer | 18ms | 3044 KiB | ||||
30 | Wrong answer | 17ms | 3096 KiB | ||||
31 | Wrong answer | 17ms | 3044 KiB | ||||
32 | Wrong answer | 17ms | 2972 KiB | ||||
subtask6 | 0/15 | ||||||
33 | Wrong answer | 17ms | 3064 KiB | ||||
34 | Wrong answer | 17ms | 3044 KiB | ||||
35 | Wrong answer | 17ms | 3048 KiB | ||||
36 | Wrong answer | 18ms | 3080 KiB | ||||
37 | Wrong answer | 18ms | 2964 KiB | ||||
38 | Wrong answer | 17ms | 3172 KiB | ||||
39 | Wrong answer | 17ms | 2952 KiB | ||||
40 | Wrong answer | 17ms | 3044 KiB | ||||
41 | Wrong answer | 17ms | 2916 KiB | ||||
subtask7 | 0/30 | ||||||
42 | Wrong answer | 17ms | 3064 KiB | ||||
43 | Wrong answer | 18ms | 3104 KiB | ||||
44 | Wrong answer | 17ms | 3256 KiB | ||||
45 | Wrong answer | 18ms | 2944 KiB | ||||
46 | Wrong answer | 17ms | 3028 KiB | ||||
47 | Wrong answer | 17ms | 3088 KiB | ||||
48 | Wrong answer | 17ms | 3196 KiB | ||||
49 | Wrong answer | 17ms | 3044 KiB | ||||
50 | Wrong answer | 17ms | 3192 KiB | ||||
51 | Wrong answer | 17ms | 3044 KiB |