Submission details
Task:Broken backspace
Sender:hy2025_002
Submission time:2025-11-05 17:45:02 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.06 sdetails
#20.06 sdetails
#30.06 sdetails
#40.06 sdetails
#50.06 sdetails
#60.06 sdetails
#70.06 sdetails
#80.06 sdetails
#90.06 sdetails
#100.06 sdetails
#110.06 sdetails
#120.06 sdetails
#130.06 sdetails
#140.06 sdetails
#150.06 sdetails
#160.06 sdetails
#170.06 sdetails
#180.06 sdetails
#190.06 sdetails
#200.06 sdetails
#210.06 sdetails
#220.06 sdetails
#230.06 sdetails
#240.06 sdetails
#250.06 sdetails
#260.06 sdetails
#270.07 sdetails
#280.06 sdetails
#290.07 sdetails
#300.06 sdetails
#310.06 sdetails
#320.06 sdetails
#330.06 sdetails
#340.06 sdetails
#350.06 sdetails
#36--details
#37--details
#38--details
#39--details
#40--details
#41--details
#42--details
#43--details
#44--details
#45--details
#46--details
#47--details
#48--details
#49--details
#50--details
#51--details
#52--details
#53--details
#54--details
#55--details
#56--details
#57--details
#58--details

Code

import re

def broken_backspace(n, m):
    splitted = list(m)
    print("splitted", splitted)
    pattern = '^.*' + '.*'.join(splitted) + '.*$'
    print(pattern)
    x = re.match(pattern, n)
    if x:
        return "Yes"
    return "No"



if __name__ == "__main__":
    n = input()
    m = input()

    print(broken_backspace(n,m))

Test details

Test 1

Verdict:

input
y
a

correct output
No

user output
splitted ['a']
^.*a.*$
No

Feedback: Output is longer than expected

Test 2

Verdict:

input
y
o

correct output
No

user output
splitted ['o']
^.*o.*$
No

Feedback: Output is longer than expected

Test 3

Verdict:

input
bs
bs

correct output
Yes

user output
splitted ['b', 's']
^.*b.*s.*$
Yes

Feedback: Output is longer than expected

Test 4

Verdict:

input
vfj
xz

correct output
No

user output
splitted ['x', 'z']
^.*x.*z.*$
No

Feedback: Output is longer than expected

Test 5

Verdict:

input
yif
yi

correct output
Yes

user output
splitted ['y', 'i']
^.*y.*i.*$
Yes

Feedback: Output is longer than expected

Test 6

Verdict:

input
ilzsl
zio

correct output
No

user output
splitted ['z', 'i', 'o']
^.*z.*i.*o.*$
No

Feedback: Output is longer than expected

Test 7

Verdict:

input
azg
a

correct output
Yes

user output
splitted ['a']
^.*a.*$
Yes

Feedback: Output is longer than expected

Test 8

Verdict:

input
mmad
ida

correct output
No

user output
splitted ['i', 'd', 'a']
^.*i.*d.*a.*$
No

Feedback: Output is longer than expected

Test 9

Verdict:

input
rmfs
ykcm

correct output
No

user output
splitted ['y', 'k', 'c', 'm']
^.*y.*k.*c.*m.*$
No

Feedback: Output is longer than expected

Test 10

Verdict:

input
skqwu
ewix

correct output
No

user output
splitted ['e', 'w', 'i', 'x']
^.*e.*w.*i.*x.*$
No

Feedback: Output is longer than expected

Test 11

Verdict:

input
rkxgc
wtep

correct output
No

user output
splitted ['w', 't', 'e', 'p']
^.*w.*t.*e.*p.*$
No

Feedback: Output is longer than expected

Test 12

Verdict:

input
lcat
lce

correct output
No

user output
splitted ['l', 'c', 'e']
^.*l.*c.*e.*$
No

Feedback: Output is longer than expected

Test 13

Verdict:

input
zmggznshn
wibfc

correct output
No

user output
splitted ['w', 'i', 'b', 'f', ...

Feedback: Output is longer than expected

Test 14

Verdict:

input
hjgri
fxgxt

correct output
No

user output
splitted ['f', 'x', 'g', 'x', ...

Feedback: Output is longer than expected

Test 15

Verdict:

input
aqjtb
ci

correct output
No

user output
splitted ['c', 'i']
^.*c.*i.*$
No

Feedback: Output is longer than expected

Test 16

Verdict:

input
pnxnq
pnxnq

correct output
Yes

user output
splitted ['p', 'n', 'x', 'n', ...

Feedback: Output is longer than expected

Test 17

Verdict:

input
smvvt
s

correct output
Yes

user output
splitted ['s']
^.*s.*$
Yes

Feedback: Output is longer than expected

Test 18

Verdict:

input
dehlwu
de

correct output
Yes

user output
splitted ['d', 'e']
^.*d.*e.*$
Yes

Feedback: Output is longer than expected

Test 19

Verdict:

input
frovxqt
f

correct output
Yes

user output
splitted ['f']
^.*f.*$
Yes

Feedback: Output is longer than expected

Test 20

Verdict:

input
isnaiipj
isnai

correct output
Yes

user output
splitted ['i', 's', 'n', 'a', ...

Feedback: Output is longer than expected

Test 21

Verdict:

input
tvfqorxbf
hsiaf

correct output
No

user output
splitted ['h', 's', 'i', 'a', ...

Feedback: Output is longer than expected

Test 22

Verdict:

input
hbeyzrmpxd
hbeyzrm

correct output
Yes

user output
splitted ['h', 'b', 'e', 'y', ...

Feedback: Output is longer than expected

Test 23

Verdict:

input
cvfrdstyia
cvf

correct output
Yes

user output
splitted ['c', 'v', 'f']
^.*c.*v.*f.*$
Yes

Feedback: Output is longer than expected

Test 24

Verdict:

input
fbqlgvoypsttw
gkqjckcnpk

correct output
No

user output
splitted ['g', 'k', 'q', 'j', ...
Truncated

Feedback: Output is longer than expected

Test 25

Verdict:

input
qetmuxclwb
grkdwns

correct output
No

user output
splitted ['g', 'r', 'k', 'd', ...

Feedback: Output is longer than expected

Test 26

Verdict:

input
dnzdfqccei
toeqt

correct output
No

user output
splitted ['t', 'o', 'e', 'q', ...

Feedback: Output is longer than expected

Test 27

Verdict:

input
gigitadgqgktnmlucdrpjmfgzlugaj...

correct output
No

user output
splitted ['p', 'p', 'q', 'u', ...
Truncated

Feedback: Output is longer than expected

Test 28

Verdict:

input
xhhwpsrfrqywdwqzzgdamkmrgutkys...

correct output
No

user output
splitted ['x', 'h', 'h', 'w', ...
Truncated

Feedback: Output is longer than expected

Test 29

Verdict:

input
kczmpmbrcgapydtsdjmnhgdqjlmfiw...

correct output
Yes

user output
splitted ['k', 'c', 'z', 'm', ...
Truncated

Feedback: Output is longer than expected

Test 30

Verdict:

input
kdolwqxnrxoguefenlghfehedsiypn...

correct output
No

user output
splitted ['k', 'd', 'o', 'l', ...
Truncated

Feedback: Output is longer than expected

Test 31

Verdict:

input
eonoxjbddvetnyzwrscrakqugzyzut...

correct output
No

user output
splitted ['e', 'o', 'n', 'o', ...
Truncated

Feedback: Output is longer than expected

Test 32

Verdict:

input
noytqcblxxegczpwfbcfazouiidlvi...

correct output
Yes

user output
splitted ['q', 'f', 'y', 't', ...

Feedback: Output is longer than expected

Test 33

Verdict:

input
fsnlwzwzhhnnxopbmalxpghzqqhdsg...

correct output
No

user output
splitted ['f', 's', 'n', 'l', ...
Truncated

Feedback: Output is longer than expected

Test 34

Verdict:

input
vsylfagbpuzphnpddomopbxpjvhzyc...

correct output
No

user output
splitted ['v', 's', 'y', 'l', ...
Truncated

Feedback: Output is longer than expected

Test 35

Verdict:

input
uftadotelejkwprmhqvxquphskiibj...

correct output
No

user output
splitted ['u', 'f', 't', 'a', ...
Truncated

Feedback: Output is longer than expected

Test 36

Verdict:

input
wmykhkomvlbaxmocfcdvkcnaqsuyeu...

correct output
No

user output
(empty)

Test 37

Verdict:

input
bfvdgidzpdbtkomnsdssudrgesexai...

correct output
No

user output
(empty)

Test 38

Verdict:

input
epehugfuqusovmdehqiyoefztwalqj...

correct output
Yes

user output
(empty)

Test 39

Verdict:

input
xtsdkcvujwifgijwhrxjyiepwhbmpd...

correct output
Yes

user output
(empty)

Test 40

Verdict:

input
suawolvogvzwqdpxqxjttthrtbhnqg...

correct output
No

user output
(empty)

Test 41

Verdict:

input
vupolhhxbovznwfxdpftypuarxylzk...

correct output
No

user output
(empty)

Test 42

Verdict:

input
pnrxvijvmrczriritjrreqdtlmvtsj...

correct output
No

user output
(empty)

Test 43

Verdict:

input
nquhecwwloskilrbxfiqlzxyhggmim...

correct output
Yes

user output
(empty)

Test 44

Verdict:

input
yvzchujqnoihsrlbogoecilotaepru...

correct output
No

user output
(empty)

Test 45

Verdict:

input
bkbntccvyxeaqspsxlnqgybjhvkyno...

correct output
Yes

user output
(empty)

Test 46

Verdict:

input
pycbqedrafcfqifliujkykggxrusll...

correct output
Yes

user output
(empty)

Test 47

Verdict:

input
ntuyzptgfhnqgsicdshcwhcravwemj...

correct output
Yes

user output
(empty)

Test 48

Verdict:

input
mwdrtpocarqfmmrhlnrmaqlqkmwcwb...

correct output
No

user output
(empty)

Test 49

Verdict:

input
ylqvocuyflcqydkppyrmygbopzaciy...

correct output
No

user output
(empty)

Test 50

Verdict:

input
bcfrdxcxwypdknwsnsheysairkjruu...

correct output
No

user output
(empty)

Test 51

Verdict:

input
luqybuerbcnshnudgittqrpncjmhjk...

correct output
Yes

user output
(empty)

Test 52

Verdict:

input
izamctfueldbjhauzhxhdvbaiedkxc...

correct output
No

user output
(empty)

Test 53

Verdict:

input
xxuxrrtdpvefxgxikyxvzvjjlnrnzv...

correct output
No

user output
(empty)

Test 54

Verdict:

input
vzckilqzoxmcrupzvrkqtjjokjcyeo...

correct output
No

user output
(empty)

Test 55

Verdict:

input
elesagcjlrhfflaqxsmukgbjiiyyyd...

correct output
Yes

user output
(empty)

Test 56

Verdict:

input
ydbfkccnflhkevsfnhrsgfisocskfs...

correct output
Yes

user output
(empty)

Test 57

Verdict:

input
implxialwixramglvesaxoulttxcij...

correct output
No

user output
(empty)

Test 58

Verdict:

input
uarjxljelkshogcskndxmcouwesvrt...

correct output
No

user output
(empty)