Luogu
\(n\) days (from from now to the end of the semester \(1\) to \(n\) number), they are all working days at the beginning. Next, the school staff will sequentially issue \(q\) instructions, each instruction can use three parameters \(l,r,k\) Description:
– If \(k=1\), then from \(l\) to \(r\) (including endpoints) all days become non-working days.
– if \(k=2\ ), then from \(l\) to \(r\) (including endpoints) All days become working days.
Help Alex count the number of remaining working days after each instruction is issued.
#include#include#include#include#include#include#include