可能重複格式化:
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