用户输出
Yes
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#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')
用户输出
Yes
系统信息
Exited with return code 0
100
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
0otv00hllo11olloo8d00l1olw901l0ol09looxel220lldq87l0ou1dwo00lm10t0oeoll3zom01y0llw0jg1l1pu8lopeq
<106 bytes omitted>
用户输出
No
系统信息
Exited with return code 0
100
0e51o1101lloko11oaoo1jhqllocl8t1odlst1001001900s5klolllc200ng7601u9a0gy1lib8nloslns000hzol1vljvk
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
0lll0g11l1hg6lkil0o1l09lo8w301k0obxlzlo1730l118ll0pb1llr2a0jlqkjll0qps1l0001o11lo16010010l01masi
<106 bytes omitted>
用户输出
No
系统信息
Exited with return code 0
100
loo0jl1la3llo010molkplool60xnf113100l11tkln110goll0z11o004ulow0mz0looolunooob31l0l060n1ol1g00y51
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
l9omf1o6ho11lbool0ll0o01ccl011000oc1go1llx10t07tooogo1lrt1100ok0l1oa1000jlloei1oh1lliaoollw1000o
<106 bytes omitted>
用户输出
No
系统信息
Exited with return code 0
100
co11ool1zlnr1o0ofiob1030y0ogtoa10oill0lt000o15lof19l0111o6djl01z1l8oo00do12o0lo000h01ll0h00oo01l
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
89l01o181o06011o1lhk1l111m07cghl0f118l0ohll0ll01lll11lp001iohoolo10b8o6kho10loqs0lo14dot0lks81fv
<106 bytes omitted>
用户输出
No
系统信息
Exited with return code 0
100
ilo6o1i0ola00so1l0tl0llo1u1h0p101lol11woou9l0l1o1t41o11oo0m01k1y10o1hlll1l1i8oo0ol1l0p1s0r50xtoq
<106 bytes omitted>
用户输出
Yes
系统信息
Exited with return code 0
100
k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2k2
<106 bytes omitted>
用户输出
No
系统信息
Exited with return code 0