little Chris huge fan linear algebra this time give homework unusual square square matrixthe dot product integer number vector x y size n sum product correspond component vector the unusual square nn square matrix a define sum n dot product the ith dot product ith row vector ith column vector matrix AFortunately Chris work GF2 this mean operation addition multiplication calculate modulo 2 in fact matrix a binary element a 0 1 for example consider follow matrix a the unusual square a equal 1110110111101101000110however homework Chris process q query query follow give row index flip value ith row a give column index flip value ith column a find unusual square a to flip bit value w mean change 1w ie 1 change 0 0 change 1given initial matrix a output answer query type can solve Chriss homework