题目链接:http://poj.org/problem?id=1426
题意:给你一个n,让你找一个可以整除n的数,这个数只有0和1构成
解析:由于这个数很特殊,所以可以构造出来,用bfs从1开始,每步只能x*10或者x*10+1
题目链接:http://poj.org/problem?id=1426
题意:给你一个n,让你找一个可以整除n的数,这个数只有0和1构成
解析:由于这个数很特殊,所以可以构造出来,用bfs从1开始,每步只能x*10或者x*10+1
点击打开链接
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M