#C#, 156+31=187 bytes
C#, 156+31=187 bytes
The code requires the following usings:
using System;using System.Linq; Here the code:
class P{static void Main(string[]a){var b=ulong.Parse(Console.ReadLine());var d=1U;for(;(b*d).ToString().Any(x=>x!='0'&&x!='1');d++);Console.WriteLine(d);}} Ungolfed:
using System; using System.Linq; class P { static void Main(string[] a) { var b = ulong.Parse(Console.ReadLine()); var d = 1U; for (; (b*d).ToString().Any(x => x != '0' && x != '1'); d++); Console.WriteLine(d); } }