About this document
Xor Tree Path Weight Calculation by Krishna Kanth is a document available to read on EtoBox.
The document outlines a programming problem for the IOI 2024, where participants must implement a function to calculate the sum of weights of all simple paths in a given tree defined by N vertices and N-1 edges with weights. The function receives vectors representing the edges and their weights, and it must return the total sum of the XOR of all paths. Examples are provided to illustrate the expected input and output, along with constraints on the input values.
- Author
- Krishna Kanth
- Language
- EN