文章

326

粉丝

4

获赞

527

访问

92.3k

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

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
登录查看完整内容


登录后发布评论

暂无评论,来抢沙发