day2 --------------------------------------------------------------- 实例003:完全平方数 题目: 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少? 仿佛不会思考,直接上手写... 1 k = 10001 2 for i in range(0,k): 3 for j in range(0,k): 4 if j*j ==(i+100): 5 for k in range(0,k): 6…
Same binary weight 时间限制:300 ms | 内存限制:65535 KB 难度:3 描述 The binary weight of a positive integer is the number of 1's in its binary representation.for example,the decmial number 1 has a binary weight of 1,and the decimal number 1717 (which is 1101…