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

Solving Knights tournament with a segment tree?

Правка en1, от Tibor2007, 2021-09-24 18:41:27

Hi,

I'm learning about segment trees at this moment. So I tried doing this exercise: https://codeforces.me/contest/356/problem/A. However, I didn't succeed. Unfortunately, the editorial doesn't mention the segment tree approach. Could someone explain how you would go about solving this with a segment tree.

Thanks

Теги segment tree

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Tibor2007 2021-09-24 18:41:27 369 Initial revision (published)