When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

miss_stuck_a_lot's blog

By miss_stuck_a_lot, history, 2 years ago, In English

This won't be a complete solution, but really what I learnt while I did it.

EDGE CASES ARE IMPORTANT

so i figured out that the number must be even, but kept getting wrong answer for test case 5. That was when I googled and realized that if it is 2, then the divided parts are not even. Silly me.

I know this is useless, but if some one on the same level as me needs it, here you go. Check Edge cases.

  • Vote: I like it
  • +5
  • Vote: I do not like it

| Write comment?