We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Special Multiple
Special Multiple
Sort by
recency
|
148 Discussions
|
Please Login in order to post a comment
The multiple sought belongs to the list: {9x1, 9x10, 9x11, 9x100, 9x101, ...} We notice that {1, 10, 11, 100, 101, ...} are the binary writings of the numbers {1, 2, 3, 4, 5, ...}
There is an error with fptr.write(result + '\n'). Change it to fptr.write(str(result) + '\n'). The correct code is below.
if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')