Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

need help with fenwicktree 2d for solving question forest queries 2 on cses

Правка en1, от killua123, 2024-02-13 13:27:25

https://codeforces.me/contest/1928/submission/246087824

I am new to range query data structures so i am treating fenwick tree as a black box. I know the working of fenwick but not able to code a 2d one.

I asked chatgpt for help it is giving wrong code I want it similar to this template so if anyone can help me with it.

Теги fenwick tree, segment tree, cses

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский killua123 2024-02-13 13:27:25 403 Initial revision (published)