is my algorithm correct?

Правка ru1, от SirodgevAlexander_, 2022-09-05 13:34:09

1722E - Counting Rectangles 170321518 Hello! Was trying to solve this problem but get stuck. What i do? i create vector pair to contain data. then i sort it. create vector for prefix sum. then i am trying to find frist and last position, where height and widght allowed. then i minus from r position l — 1 position. and it dont work(((

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru1 Русский SirodgevAlexander_ 2022-09-05 13:34:09 369 Первая редакция (опубликовано)