Help for 869-E

Revision en1, by AlexArdelean, 2017-12-29 23:24:20

hello ,

i know i didn't totally listen to the editorial but i don't understand why my implementation could be wrong and why i get WA at test 9 on problem E of contest 896.

My implementation is 33780827.

i thought about keeping the square in which my element 1 and element 2 are and i am keeping it using a global variable k which i use to mark the square in which my element is. i am introducing new squares by increasing k and increasing by it, removing a square with a matrix whatwasthere and decreasing by the value of whatwasthere[line][column] of the first element of the query , and display yes if the square in which the first element is equals to the square in which the second element of the query is

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English AlexArdelean 2017-12-29 23:24:20 734 Initial revision (published)