Solving Knights tournament with a segment tree?

Revision en1, by 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.com/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

Tags segment tree

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Tibor2007 2021-09-24 18:41:27 369 Initial revision (published)