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.
Expressions V2
Expressions V2
Sort by
recency
|
11 Discussions
|
Please Login in order to post a comment
scala:
I think this problem might not be tagged as Expert
Sorry for my perhaps naive question.
When I compute 10^(p-2) using fast modular exponentiation as suggested by the challenge author I do not get the expected result of 700000005. My code for fast modular exponentiation is below (no spoiler here since it is a word for word rendering of the challenge author's own suggestion as he himself posted):
Indeed, the reported result for modexp 10. (p-.2.) is 485926138.
Can someone point me in the right direction? Thank you!
AC using SLR(1) and LL(1) Parsing
I hate to boast, but this should not be classified as 'Expert' : solved in 2 hours flat :D