Ad
  • Custom User Avatar

    Optimize your solution for n as large as 1010.

    You could comment out the 1e6 example test; if you can pass the smaller ones you know you need moar speed.