Technique to maximize min(ax+by,bx+ayxa+yb,xb+ya)
Разница между en1 и en2, 330 символ(ов) изменены
https://codeforces.com/problemset/problem/1307/D↵

I
n the problem a sorting technique is needed. I read the editorial have elements 1 to N. Each element has two values xi and yi.↵
Now I want to choose two elements a,b such that min(xa+yb,xb+ya) is maximized.↵
There is a naive n^2 solution to check every pair of elements. But it is possible to do it in nlogn complexity.↵
The problem link mentioned above has the editorial that describes the method
 but couldn't understandget it. Can someanyone explain that?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Voga 2020-04-08 16:10:30 10 Tiny change: ' xi and yi.\nNow I w' -> ' xi and yi (1<=i<=N).\nNow I w'
en2 Английский Voga 2020-04-08 16:09:30 330
en1 Английский Voga 2020-04-07 00:26:46 207 Initial revision (published)