Help in greedy problem !!!!

Правка en1, от ayush29azad, 2021-09-21 08:53:56

Problem Link :

https://codeforces.me/problemset/problem/1313/C1

Can someone help me in solving this greedy problem ????

I thought of 2 passes left and right and storing max and then changing the elements and then comparing the sum of both sides(left and right) but it is not working , Can someone suggest a good approach to solve this problem. There is no tutorial for this problem .

Thank You in advance.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ayush29azad 2021-09-21 08:53:56 448 Initial revision (published)