GRID PROBLEM

Правка en1, от RickAstley69, 2025-07-06 19:34:50

problem:

giving a grid of size 1e6*1e6 (in the beginning its all inf), we have 2 queries:

1 x y p: assign a[x][y]=p

2 x1 y1 x2 y2: print minimum element of subgrid start from (x1,y1) and end at (x2,y2)

I have some ideas like Dynamic 2D segment tree but I don't really sure thats work, can anyone suggests some other sol:>

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский RickAstley69 2025-07-06 19:34:50 348 Initial revision (published)