I've been trying to use the ACL lazy segtree (source code here) to solve the following CSES problem.
Is it possible through purely the template API? Or do I need to modify the internal implementation a bit. If it is possible, can anyone provide some hints on what values I need to be storing in S and what I need to pass around in F?
Thanks in advance!