11172 | 2024-07-08 12:40:23 | proba | Legnagyobb téglalap | python3 | Wrong answer 0/100 | 18ms | 3444 KiB |
# rudak
N = 8
rudak =[int(i) for i in '1 3 3 7 6 7 9 6'.split(' ')]
H = set()
for i in rudak:
H.add(i)
D = []
for i in list(H):
if rudak.count(i) > 1:
D += [[i, rudak.count(i)]]
sor = sorted(D, key = lambda x: x[1])
if len(D)==0 or (len(D) == 1 and D[0][1] < 4):
print(0)
elif len(D) == 1 and D[0][1] >3:
print(D[0][1]**2)
elif D[-1][1] > 3:
print(D[-1][0]**2)
else:
print(D[-1][0]*D[-2][0])
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 3044 KiB | ||||
2 | Wrong answer | 17ms | 3088 KiB | ||||
3 | Wrong answer | 17ms | 3088 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 17ms | 3044 KiB | ||||
5 | Wrong answer | 17ms | 3188 KiB | ||||
6 | Wrong answer | 18ms | 2956 KiB | ||||
7 | Wrong answer | 18ms | 3104 KiB | ||||
8 | Wrong answer | 17ms | 3192 KiB | ||||
subtask3 | 0/10 | ||||||
9 | Wrong answer | 18ms | 2976 KiB | ||||
10 | Wrong answer | 18ms | 3088 KiB | ||||
11 | Wrong answer | 18ms | 2992 KiB | ||||
12 | Wrong answer | 17ms | 3192 KiB | ||||
13 | Wrong answer | 18ms | 3096 KiB | ||||
14 | Wrong answer | 17ms | 3184 KiB | ||||
subtask4 | 0/15 | ||||||
15 | Wrong answer | 17ms | 3088 KiB | ||||
16 | Wrong answer | 18ms | 3144 KiB | ||||
17 | Wrong answer | 18ms | 2972 KiB | ||||
18 | Wrong answer | 18ms | 3124 KiB | ||||
19 | Wrong answer | 17ms | 2964 KiB | ||||
20 | Wrong answer | 17ms | 3044 KiB | ||||
21 | Wrong answer | 17ms | 3044 KiB | ||||
22 | Wrong answer | 17ms | 3044 KiB | ||||
23 | Wrong answer | 17ms | 3320 KiB | ||||
24 | Wrong answer | 17ms | 3044 KiB | ||||
subtask5 | 0/20 | ||||||
25 | Wrong answer | 17ms | 3192 KiB | ||||
26 | Wrong answer | 18ms | 2948 KiB | ||||
27 | Wrong answer | 18ms | 3068 KiB | ||||
28 | Wrong answer | 17ms | 3048 KiB | ||||
29 | Wrong answer | 18ms | 3104 KiB | ||||
30 | Wrong answer | 17ms | 3200 KiB | ||||
31 | Wrong answer | 17ms | 2972 KiB | ||||
32 | Wrong answer | 17ms | 3184 KiB | ||||
subtask6 | 0/15 | ||||||
33 | Wrong answer | 17ms | 3068 KiB | ||||
34 | Wrong answer | 18ms | 3060 KiB | ||||
35 | Wrong answer | 18ms | 3004 KiB | ||||
36 | Wrong answer | 17ms | 3188 KiB | ||||
37 | Wrong answer | 18ms | 3108 KiB | ||||
38 | Wrong answer | 17ms | 3044 KiB | ||||
39 | Wrong answer | 17ms | 3444 KiB | ||||
40 | Wrong answer | 18ms | 3232 KiB | ||||
41 | Wrong answer | 17ms | 3040 KiB | ||||
subtask7 | 0/30 | ||||||
42 | Wrong answer | 18ms | 3040 KiB | ||||
43 | Wrong answer | 17ms | 2984 KiB | ||||
44 | Wrong answer | 17ms | 3192 KiB | ||||
45 | Wrong answer | 17ms | 3004 KiB | ||||
46 | Wrong answer | 17ms | 3044 KiB | ||||
47 | Wrong answer | 17ms | 2972 KiB | ||||
48 | Wrong answer | 17ms | 3044 KiB | ||||
49 | Wrong answer | 17ms | 3044 KiB | ||||
50 | Wrong answer | 17ms | 2916 KiB | ||||
51 | Wrong answer | 17ms | 3116 KiB |