Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67238 冯潇阳 二进制数问题 Python3 Wrong Answer 28 MS 3740 KB 161 2024-03-16 10:55:10

Tests(0/1):


Code:

a,b=0,0 for x in range(1,1001): bx=bin(x) c0=bx.count('0') c1 = bx.count('1') if c1>c0: a+=1 else: b+=1 print(a,b)


Run Info:

------Input------
0
------Answer-----
538 462
------Your output-----
439 561