文章

311

粉丝

0

获赞

159

访问

30.6k

头像
奇偶校验 题解:
P1402 华中科技大学
发布于2026年2月9日 11:03
阅读数 87

while(1):
    try:
        n=input()
        for i in n:
            k=ord(i)
            out=format(ord(i),'08b')
            count=out.count('1')
            if(count%2!=1):
                print("1",end='')
                print(out[1:])
            else:
                print(out)
    except:
        break
登录查看完整内容


登录后发布评论

暂无评论,来抢沙发