111722024-07-08 12:40:23probaLegnagyobb téglalappython3Wrong answer 0/10018ms3444 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])
    
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms3044 KiB
2Wrong answer17ms3088 KiB
3Wrong answer17ms3088 KiB
subtask20/10
4Wrong answer17ms3044 KiB
5Wrong answer17ms3188 KiB
6Wrong answer18ms2956 KiB
7Wrong answer18ms3104 KiB
8Wrong answer17ms3192 KiB
subtask30/10
9Wrong answer18ms2976 KiB
10Wrong answer18ms3088 KiB
11Wrong answer18ms2992 KiB
12Wrong answer17ms3192 KiB
13Wrong answer18ms3096 KiB
14Wrong answer17ms3184 KiB
subtask40/15
15Wrong answer17ms3088 KiB
16Wrong answer18ms3144 KiB
17Wrong answer18ms2972 KiB
18Wrong answer18ms3124 KiB
19Wrong answer17ms2964 KiB
20Wrong answer17ms3044 KiB
21Wrong answer17ms3044 KiB
22Wrong answer17ms3044 KiB
23Wrong answer17ms3320 KiB
24Wrong answer17ms3044 KiB
subtask50/20
25Wrong answer17ms3192 KiB
26Wrong answer18ms2948 KiB
27Wrong answer18ms3068 KiB
28Wrong answer17ms3048 KiB
29Wrong answer18ms3104 KiB
30Wrong answer17ms3200 KiB
31Wrong answer17ms2972 KiB
32Wrong answer17ms3184 KiB
subtask60/15
33Wrong answer17ms3068 KiB
34Wrong answer18ms3060 KiB
35Wrong answer18ms3004 KiB
36Wrong answer17ms3188 KiB
37Wrong answer18ms3108 KiB
38Wrong answer17ms3044 KiB
39Wrong answer17ms3444 KiB
40Wrong answer18ms3232 KiB
41Wrong answer17ms3040 KiB
subtask70/30
42Wrong answer18ms3040 KiB
43Wrong answer17ms2984 KiB
44Wrong answer17ms3192 KiB
45Wrong answer17ms3004 KiB
46Wrong answer17ms3044 KiB
47Wrong answer17ms2972 KiB
48Wrong answer17ms3044 KiB
49Wrong answer17ms3044 KiB
50Wrong answer17ms2916 KiB
51Wrong answer17ms3116 KiB