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.
Project Euler #40: Champernowne's constant
Project Euler #40: Champernowne's constant
Sort by
recency
|
22 Discussions
|
Please Login in order to post a comment
100% python
Lovely challenge 100 points/- python 3
I used more math than programming in this question.
C# even a near constant solution need to reduce the calls to Console.WriteLine to pass the last 3 cases.
My python solution was timing out for the last two, but when I was testing it on my own computer it passed 10^5 cases in less than 2 seconds. It was reading the input that was taking too long. This made the difference:
import sys
input = sys.stdin.readline