Learning-CSES

Weird Algorithm

Solved the Weird Algorithm with the following test results:

  • 11: Total time: 0.067ms - 3.709ms
  • 100: Total time: 0.068ms - 12.759ms
  • 1000: Total time: 0.558ms - 282.699ms
  • 10000: Total time: 5.575ms - 3.012s
  • 100000: Total time: 42.759ms - 33.867s
  • 1000000: Total time: 2.972s - 6:34.807 (m:ss.mmm)
  • 10000000: Total time: 41.374s