Блог пользователя prachin_roy

Автор prachin_roy, история, 6 лет назад, По-английски

I'm trying to make a custom checker for this problem but in a different way. Actually in this problem setter wants to know minimum number snow heap . But I want to know the position also. In this situation the answer can be different. Such as, For the first input


2 2 1 1 2 **the answer ca be this** 1 1 1 **or can be this** 1 2 2 Again for another **testcase** **input:** 3 2 2 4 4 8 7 **output1:** 2 2 4 2 7 **output2:** 2 2 4 8 2 **output3:** 2 4 2 4 7 and so on Then how can i make the custom checker. I prefer C++ to do this task. Thanks in advance.
  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится