Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68197 金浩 二进制数问题 Python3 Accepted 31 MS 3736 KB 175 2024-03-20 18:35:18

Tests(1/1):


Code:

A,B=0,0 for x in range(1,1001): bx=bin(x)[2:] c0=bx.count("0") c1=bx.count("1") if c0<c1: A+=1 else: B+=1 print(str(A)+" "+str(B))