4 ms·
That one was #514 for me: https://projecteuler.net/problem=514 https://projecteuler.net/problem=514
by jkhdigital 5y ago
That one was #514 for me: https://projecteuler.net/problem=514 https://projecteuler.net/problem=514
- spudwaffle 5y agoDid you try an experimental approach?
- schoen 5y agoI haven't seen this problem before, but that seems extremely unlikely to work to me - I think there are 2¹⁰²⁰¹ cases (not equiprobable although you can find the weight of each somewhat "easily"), so are you really going to get a good enough sample to measure the expected value to "five decimal places" without figuring out a lot about the underlying structure?