WnSOJ
Home
Problems
Jobs
FAQ
Login
Register
Editorial
RSQ Queries
Back to problem
Statement
Editorial
Submissions
There are many solutions to this problem. One of them is using segment tree.
Author's Solution
GNU C++23
Copy
Wrap
Show