Python Solution (Weird case)
```\nclass Solution:\n    def smallestRepunitDivByK(self, k: int) -> int:\n        if k%10==0 or k%5==0:\n            return -1\n\n        num = 1\n        coun
```\nclass Solution:\n    def smallestRepunitDivByK(self, k: int) -> int:\n        if k%10==0 or k%5==0:\n            return -1\n\n        num = 1\n        count = 0\n        while num%k!=0:\n            num = num*10+1\n            count+=1\n            \n        return count+1\n\t
['Python']