rachitiitr's blog

By rachitiitr, history, 8 years ago, In English

Hey everyone!
I have just understood the idea of Centroid Decomposition in previous zscoder's contest.
I was doing another problem based on this concept.
Here is my detailed source code
Can someone help me figure out what am I doing wrong. I have checked the integer overflow cases and the code almost seems right. I can't view the test cases of the gym problem.
Thanks.

  • Vote: I like it
  • +3
  • Vote: I do not like it