Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 7:00 (UTC) due to technical maintenance. ×

hiddenanonymous's blog

By hiddenanonymous, 3 years ago, In English

Hi, can anyone tell me is there any way to solve this problem recursively? In iterative way it's obvious to maintain prefix sums.

  • Vote: I like it
  • -4
  • Vote: I do not like it