Submission details
Task:Matter++
Sender:aalto26im_025
Submission time:2026-11-02 17:48:57 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.07 sdetails
#20.07 sdetails
#30.07 sdetails
#40.08 sdetails
#50.07 sdetails
#60.08 sdetails
#70.07 sdetails
#80.07 sdetails
#90.08 sdetails
#100.08 sdetails
#110.08 sdetails
#120.07 sdetails
#130.08 sdetails
#140.08 sdetails
#150.08 sdetails
#160.08 sdetails
#170.07 sdetails
#180.08 sdetails
#190.08 sdetails
#200.08 sdetails
#210.07 sdetails
#220.08 sdetails
#230.08 sdetails
#240.07 sdetails
#250.07 sdetails
#260.08 sdetails
#270.07 sdetails
#280.07 sdetails
#290.07 sdetails
#300.07 sdetails
#310.08 sdetails
#320.07 sdetails
#330.08 sdetails
#340.07 sdetails
#350.07 sdetails
#360.08 sdetails
#370.07 sdetails
#380.07 sdetails
#390.07 sdetails
#400.07 sdetails
#410.07 sdetails
#420.07 sdetails
#430.07 sdetails
#440.08 sdetails
#450.07 sdetails
#460.07 sdetails
#470.07 sdetails
#480.08 sdetails
#490.07 sdetails
#500.07 sdetails
#510.07 sdetails
#520.07 sdetails
#530.07 sdetails
#540.07 sdetails
#550.11 sdetails
#560.07 sdetails
#570.07 sdetails
#580.07 sdetails
#590.07 sdetails
#600.09 sdetails
#610.08 sdetails
#620.08 sdetails
#630.08 sdetails
#640.08 sdetails
#650.08 sdetails
#660.08 sdetails
#670.08 sdetails
#680.08 sdetails
#690.08 sdetails
#700.08 sdetails
#710.08 sdetails

Code

from string import ascii_lowercase

W = int(input())
s = input()

letters = list(ascii_lowercase)
def potential(S):
    p = 0
    for l in letters:
        p += S.count(l)**2
    return p

verified = []

min = 10e5
str_min = ""
for i in range(len(s)):
    for j in range(len(s)-i):
        tmp_s = s[i:i+j+1]
        if tmp_s in verified or length>=min:
            continue
        else:
            verified.append(tmp_s)
        length = len(tmp_s)
        if potential(tmp_s)>=W and length<min:
            min = length
            str_min = tmp_s
print(str_min)
print(verified)

Test details

Test 1

Verdict:

input
1
e

correct output
e

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 2

Verdict:

input
1
be

correct output
b

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 3

Verdict:

input
1
za

correct output
z

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 4

Verdict:

input
1
po

correct output
p

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 5

Verdict:

input
1
acc

correct output
a

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 6

Verdict:

input
2
caa

correct output
ca

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 7

Verdict:

input
2
caa

correct output
ca

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 8

Verdict:

input
2
cced

correct output
cc

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 9

Verdict:

input
2
ceea

correct output
ce

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 10

Verdict:

input
1
ccad

correct output
c

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 11

Verdict:

input
4
ccda

correct output
cc

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 12

Verdict:

input
1
defdf

correct output
d

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 13

Verdict:

input
1
fefaa

correct output
f

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 14

Verdict:

input
7
bafdf

correct output
bafdf

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 15

Verdict:

input
1
aefba

correct output
a

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 16

Verdict:

input
3
cbacc

correct output
cc

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 17

Verdict:

input
1
bwvfj

correct output
b

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 18

Verdict:

input
11
caaca

correct output
caaca

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 19

Verdict:

input
4
fuilz

correct output
fuil

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 20

Verdict:

input
5
acacb

correct output
aca

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 21

Verdict:

input
4
jnmma

correct output
mm

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 22

Verdict:

input
6
defdfdfcdd

correct output
defd

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 23

Verdict:

input
5
fefaabfaba

correct output
fef

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 24

Verdict:

input
22
bafdfcccbb

correct output
bafdfcccbb

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 25

Verdict:

input
12
aefbaddfcf

correct output
aefbaddf

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 26

Verdict:

input
14
cbacccbcba

correct output
cccbc

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 27

Verdict:

input
1
bwvfjxzmcp

correct output
b

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 28

Verdict:

input
17
caacaabacb

correct output
aacaa

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 29

Verdict:

input
13
fuilzslzio

correct output
ilzslzi

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 30

Verdict:

input
16
acacbbcaba

correct output
acacbbc

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 31

Verdict:

input
5
jnmmadidaf

correct output
nmm

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 32

Verdict:

input
278
defdfdfcddccbfafbcceedcdcffaca...

correct output
fdfcddccbfafbcceedcdcffacadace...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 33

Verdict:

input
32
fefaabfabacbccecfdfcbedbcfbade...

correct output
cbccecfdfc

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 34

Verdict:

input
1387
bafdfcccbbabedabcbddedeacddbee...

correct output
dfcccbbabedabcbddedeacddbeebfd...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 35

Verdict:

input
190
aefbaddfcfaaabbaaceaaccdbbcecd...

correct output
aaabbaaceaaccdbbcecdfaedfbccdb...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 36

Verdict:

input
1205
cbacccbcbaacaacacbbcaabcbcbabb...

correct output
abbaabccbacacccbabaabaacccbcbc...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 37

Verdict:

input
299
bwvfjxzmcpktjnmhzevcqtvlgetwch...

correct output
vfjxzmcpktjnmhzevcqtvlgetwchfk...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 38

Verdict:

input
2796
caacaabacbabbbbbbbcbccbbababcc...

correct output
bacbabbbbbbbcbccbbababccccbbcc...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 39

Verdict:

input
345
fuilzslziogncbkgamnrwuijkbrhrx...

correct output
lziogncbkgamnrwuijkbrhrxsfilyy...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 40

Verdict:

input
1517
acacbbcababbcbbbcbcbabccbccbab...

correct output
baaaaaccaaaaababbccbbccaaababb...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 41

Verdict:

input
123
jnmmadidafwkdgdckimeiwjytbzsso...

correct output
mmadidafwkdgdckimeiwjytbzssodx...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 42

Verdict:

input
1079
defdfdfcddccbfafbcceedcdcffaca...

correct output
fdfdfcddccbfafbcceedcdcffacada...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 43

Verdict:

input
56
fefaabfabacbccecfdfcbedbcfbade...

correct output
fbeeefebaedfff

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 44

Verdict:

input
5337
bafdfcccbbabedabcbddedeacddbee...

correct output
bafdfcccbbabedabcbddedeacddbee...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 45

Verdict:

input
744
aefbaddfcfaaabbaaceaaccdbbcecd...

correct output
cccacdedecabbcdcebdbbcdfddfbeb...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 46

Verdict:

input
10488
cbacccbcbaacaacacbbcaabcbcbabb...

correct output
bcbcbabbcabbaabccbacacccbabaab...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 47

Verdict:

input
11
bwvfjxzmcpktjnmhzevcqtvlgetwch...

correct output
pxyyy

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 48

Verdict:

input
5929
caacaabacbabbbbbbbcbccbbababcc...

correct output
bbbbbbbcbccbbababccccbbccccbac...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 49

Verdict:

input
1398
fuilzslziogncbkgamnrwuijkbrhrx...

correct output
gncbkgamnrwuijkbrhrxsfilyygatp...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 50

Verdict:

input
5219
acacbbcababbcbbbcbcbabccbccbab...

correct output
acbbcababbcbbbcbcbabccbccbabba...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 51

Verdict:

input
450
jnmmadidafwkdgdckimeiwjytbzsso...

correct output
qmtyjuvzcecnbymqfwyzzergpwuxbt...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 52

Verdict:

input
26679
defdfdfcddccbfafbcceedcdcffaca...

correct output
bcbfacacffbedecaafcecffaffaadd...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 53

Verdict:

input
22417
fefaabfabacbccecfdfcbedbcfbade...

correct output
adefccdcafbeeefebaedfffeaeabba...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 54

Verdict:

input
128464
bafdfcccbbabedabcbddedeacddbee...

correct output
bafdfcccbbabedabcbddedeacddbee...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 55

Verdict:

input
10769
aefbaddfcfaaabbaaceaaccdbbcecd...

correct output
ebefdceecdabceccdeaebdeebdcdfa...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 56

Verdict:

input
70653
cbacccbcbaacaacacbbcaabcbcbabb...

correct output
acaaaaaabaaabbccbabbbbcacbccbc...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 57

Verdict:

input
233
bwvfjxzmcpktjnmhzevcqtvlgetwch...

correct output
qfvyojqjvhyfxtvycrjlaoofuebvev...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 58

Verdict:

input
116525
caacaabacbabbbbbbbcbccbbababcc...

correct output
caaabbacabbbabcccbacaaacaaccac...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 59

Verdict:

input
27985
fuilzslziogncbkgamnrwuijkbrhrx...

correct output
uilzslziogncbkgamnrwuijkbrhrxs...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 60

Verdict:

input
161959
acacbbcababbcbbbcbcbabccbccbab...

correct output
acacbbcababbcbbbcbcbabccbccbab...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 61

Verdict:

input
8903
jnmmadidafwkdgdckimeiwjytbzsso...

correct output
uaguxmabjxfuialfmskifofagvsnkn...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 62

Verdict:

input
264240357
defdfdfcddccbfafbcceedcdcffaca...

correct output
badeaccfbabfcceaabffecbffcdcfe...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 63

Verdict:

input
30437082
fefaabfabacbccecfdfcbedbcfbade...

correct output
acdbbfafacdebdefccfbcfcdeecdfd...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 64

Verdict:

input
1280505429
bafdfcccbbabedabcbddedeacddbee...

correct output
eaceacebbcdfacddcecfceccddfcac...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 65

Verdict:

input
107609709
aefbaddfcfaaabbaaceaaccdbbcecd...

correct output
bffcffbddbfedcccfcdcdfecbbefbe...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 66

Verdict:

input
706196896
cbacccbcbaacaacacbbcaabcbcbabb...

correct output
bccbccccacabcacaaabcccbacbcaba...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 67

Verdict:

input
9966992
bwvfjxzmcpktjnmhzevcqtvlgetwch...

correct output
hljwtcgatnetpvfxeiipnhaarsejbf...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 68

Verdict:

input
1449002782
caacaabacbabbbbbbbcbccbbababcc...

correct output
acbaabcaababcabcccabcbbaacccca...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 69

Verdict:

input
275504573
fuilzslziogncbkgamnrwuijkbrhrx...

correct output
lziogncbkgamnrwuijkbrhrxsfilyy...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 70

Verdict:

input
1480920774
acacbbcababbcbbbcbcbabccbccbab...

correct output
bcccaccabcaabccaaabcbbacbbbbba...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?

Test 71

Verdict:

input
199518168
jnmmadidafwkdgdckimeiwjytbzsso...

correct output
mzdiyihtesgshxbshryvzqghavzgrs...

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 20, in <module>
    if tmp_s in verified or length>=min:
NameError: name 'length' is not defined. Did you mean: len?