编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#816 #996. 相似字符串 Accepted 100 503 ms 2884 K Python 3 / 397 B s230034061 2023-10-15 15:18:52
N = int(input())
s=input()
t=input()
def similar(s,t):
    if len(s)!=len(t):
        return false
    for i in range(len(s)):
        if s[i]!=t[i] and not (s[i]=='l'and t[i]=='1') and not (s[i]=='1' and t[i]=='l') and not (s[i]=='0'and t[i]=='o') and not (s[i]=='o' and t[i]=='0'):
            return False
    return True
if similar(s,t):
    print('Yes')
else:
    print('No')

子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:31 ms
内存:2864 KiB

输入文件(00_sample_01.in

3
l0w
1ow

答案文件(00_sample_01.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:28 ms
内存:2808 KiB

输入文件(00_sample_02.in

3
abc
arc

答案文件(00_sample_02.out

No

用户输出

No

系统信息

Exited with return code 0
测试点 #3
Accepted
得分:100
用时:18 ms
内存:2840 KiB

输入文件(00_sample_03.in

4
nok0
n0ko

答案文件(00_sample_03.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #4
Accepted
得分:100
用时:23 ms
内存:2832 KiB

输入文件(01_test_01.in

1
i
l

答案文件(01_test_01.out

No

用户输出

No

系统信息

Exited with return code 0
测试点 #5
Accepted
得分:100
用时:24 ms
内存:2856 KiB

输入文件(01_test_02.in

1
o
0

答案文件(01_test_02.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #6
Accepted
得分:100
用时:17 ms
内存:2816 KiB

输入文件(01_test_03.in

100
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
<106 bytes omitted>

答案文件(01_test_03.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #7
Accepted
得分:100
用时:21 ms
内存:2844 KiB

输入文件(01_test_04.in

100
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
<106 bytes omitted>

答案文件(01_test_04.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #8
Accepted
得分:100
用时:37 ms
内存:2868 KiB

输入文件(01_test_05.in

100
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
<106 bytes omitted>

答案文件(01_test_05.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #9
Accepted
得分:100
用时:30 ms
内存:2752 KiB

输入文件(01_test_06.in

100
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<106 bytes omitted>

答案文件(01_test_06.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #10
Accepted
得分:100
用时:20 ms
内存:2804 KiB

输入文件(01_test_07.in

100
0otv00hllo11olloo8d00l1olw901l0ol09looxel220lldq87l0ou1dwo00lm10t0oeoll3zom01y0llw0jg1l1pu8lopeq
<106 bytes omitted>

答案文件(01_test_07.out

No

用户输出

No

系统信息

Exited with return code 0
测试点 #11
Accepted
得分:100
用时:23 ms
内存:2884 KiB

输入文件(01_test_08.in

100
0e51o1101lloko11oaoo1jhqllocl8t1odlst1001001900s5klolllc200ng7601u9a0gy1lib8nloslns000hzol1vljvk
<106 bytes omitted>

答案文件(01_test_08.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #12
Accepted
得分:100
用时:39 ms
内存:2752 KiB

输入文件(01_test_09.in

100
0lll0g11l1hg6lkil0o1l09lo8w301k0obxlzlo1730l118ll0pb1llr2a0jlqkjll0qps1l0001o11lo16010010l01masi
<106 bytes omitted>

答案文件(01_test_09.out

No

用户输出

No

系统信息

Exited with return code 0
测试点 #13
Accepted
得分:100
用时:20 ms
内存:2776 KiB

输入文件(01_test_10.in

100
loo0jl1la3llo010molkplool60xnf113100l11tkln110goll0z11o004ulow0mz0looolunooob31l0l060n1ol1g00y51
<106 bytes omitted>

答案文件(01_test_10.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #14
Accepted
得分:100
用时:34 ms
内存:2840 KiB

输入文件(01_test_11.in

100
l9omf1o6ho11lbool0ll0o01ccl011000oc1go1llx10t07tooogo1lrt1100ok0l1oa1000jlloei1oh1lliaoollw1000o
<106 bytes omitted>

答案文件(01_test_11.out

No

用户输出

No

系统信息

Exited with return code 0
测试点 #15
Accepted
得分:100
用时:39 ms
内存:2756 KiB

输入文件(01_test_12.in

100
co11ool1zlnr1o0ofiob1030y0ogtoa10oill0lt000o15lof19l0111o6djl01z1l8oo00do12o0lo000h01ll0h00oo01l
<106 bytes omitted>

答案文件(01_test_12.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #16
Accepted
得分:100
用时:27 ms
内存:2752 KiB

输入文件(01_test_13.in

100
89l01o181o06011o1lhk1l111m07cghl0f118l0ohll0ll01lll11lp001iohoolo10b8o6kho10loqs0lo14dot0lks81fv
<106 bytes omitted>

答案文件(01_test_13.out

No

用户输出

No

系统信息

Exited with return code 0
测试点 #17
Accepted
得分:100
用时:32 ms
内存:2860 KiB

输入文件(01_test_14.in

100
ilo6o1i0ola00so1l0tl0llo1u1h0p101lol11woou9l0l1o1t41o11oo0m01k1y10o1hlll1l1i8oo0ol1l0p1s0r50xtoq
<106 bytes omitted>

答案文件(01_test_14.out

Yes

用户输出

Yes

系统信息

Exited with return code 0
测试点 #18
Accepted
得分:100
用时:19 ms
内存:2832 KiB

输入文件(02_corner_01.in

100
k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2
<106 bytes omitted>

答案文件(02_corner_01.out

No

用户输出

No

系统信息

Exited with return code 0
测试点 #19
Accepted
得分:100
用时:21 ms
内存:2784 KiB

输入文件(02_corner_02.in

100
1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n1n
<106 bytes omitted>

答案文件(02_corner_02.out

No

用户输出

No

系统信息

Exited with return code 0