Submission details
Task:Edit distance
Sender:Wu xiaobo
Submission time:2020-09-12 14:23:23 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.07 sdetails
#20.07 sdetails
#30.07 sdetails
#40.07 sdetails
#50.07 sdetails
#60.07 sdetails
#70.08 sdetails
#80.07 sdetails
#90.07 sdetails
#100.07 sdetails
#110.07 sdetails
#120.07 sdetails
#130.07 sdetails
#140.07 sdetails
#150.07 sdetails
#160.07 sdetails
#170.07 sdetails
#180.07 sdetails
#190.07 sdetails

Code

hashed = input()

assert len(hashed) == 16, 'disabled input'
password = ''

for j in range(4):
    s = hashed[j * 4: j * 4 + 4]
    ha = list(s)
    for i in range(3, -1, -1):
        ind = (i + ord(s[i])) % 4  # exchange id
        ha[i], ha[ind] = ha[ind], ha[i]
    password = password + ''.join(ha)

print(password)


Test details

Test 1

Verdict:

input
NEABJPJOI
RFMQRJKJKIA

correct output
8

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 2

Verdict:

input
TWXFUABGBNLTBFNSUVQW
GPNJILFXJUIZPLTVUIB

correct output
19

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 3

Verdict:

input
HSMOWJXKGRWSMD
JMRTLLNPXKKXZC

correct output
14

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 4

Verdict:

input
NGPYCNPO
UQPXWVLGHC

correct output
9

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 5

Verdict:

input
SQTCKWAMFJEBV
IUWGGNJOMQFP

correct output
13

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 6

Verdict:

input
VDREWLLHMEVGFGBXJJOSSLHNJBOTRK...

correct output
4047

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 7

Verdict:

input
EIIUUQXSAFMTRSEZSFYNSAGHUWTSGY...

correct output
3769

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 8

Verdict:

input
HVOXUVAZYFBKEWQXVGJMYXCCXBWRNW...

correct output
3806

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 9

Verdict:

input
AWGASQANDZQTVKXQDKWNADQDBXKCOK...

correct output
4069

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 10

Verdict:

input
WXAAJJALZRLGLSXDPUPURULYINBFGX...

correct output
3874

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 11

Verdict:

input
A
A

correct output
0

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 12

Verdict:

input
A
B

correct output
1

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 13

Verdict:

input
AA
A

correct output
1

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 14

Verdict:

input
A
AA

correct output
1

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 15

Verdict:

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

correct output
5000

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 16

Verdict:

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

correct output
0

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 17

Verdict:

input
B
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

correct output
5000

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 18

Verdict:

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

correct output
5000

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...

Test 19

Verdict:

input
KITTEN
SITTING

correct output
3

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    assert...