可能重复格式化:
Find multiple of a number that can be written with 1s and 0s多个由0/1
鉴于数n(2 < = N < = 1000),找到最低非零倍数其中是写入在基数10中只有数字0和1。例如:2→10→3→111→4→100→7→1001→11→11→9→111 111 111.
我想,按照余数除以数字组成n格式化为0/1.感谢您的帮助!
{10/3= 3 remaining 1 -> and the finaly is 111 !!!
10/4= 4 ramining 2 -> and the finaly is 100 !!!
10/6= 1 ramainin 4 -> and the finaly is 1110 !!!
I don't understand is the logic}
我似乎无法找出你在问什么。 (第一部分看起来像一个家庭作业问题)。 –
这看起来像功课 – Efthymis
的问题是种不清楚。 – dagnelies