I would like to know how to solve CodeChef — Chef and Graph Queries online. I've solved this problem using an offline method.
My solution using MO's Algorithm: https://www.codechef.com/viewsolution/18109768
Is it possible to solve CodeChef GERALD07 online?
I would like to know how to solve CodeChef — Chef and Graph Queries online. I've solved this problem using an offline method.
My solution using MO's Algorithm: https://www.codechef.com/viewsolution/18109768