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

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

Can anybody tell me how to sort using Comparator in C++ in any specific order what are the condition required for such sorting and also what is the time complexity for sorting using comparator.
Example sort the pairs (1,2),(3,4),(6,10),(7,2) on the basis of if( ( a1 / b1 ) < ( a2 / b2 ) ) then (a1,b1) pair should come first in the order.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

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

Can anybody tell me how to solve the problem Extending Set of Points from Educational Codeforces Round 62. I have tried to read the editorial but still not getting the idea about how to solve that Problem.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится