problem B of last contest HELP !

Правка en1, от SuperMo, 2024-07-01 23:06:49

Hi in problem B of last contest the answer is ∑(pi−ai)+max(pi−ai) now I don't get the max(pi−ai) part I know what it's but I don't know how did we derive it can someone help ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский SuperMo 2024-07-01 23:06:49 216 Initial revision (published)