Why does this happen?

Revision en1, by numbertheorist17, 2016-01-19 21:42:44

I was trying 484E - Объявление на заборе. Here are my two submissions:

15442167

15442182

The only thing I changed in these two submissions is in the update method. Instead of having

int k = update(L[ID], low, mid, qx);
L[ID] = k;

I put

L[ID] = update(L[ID], low, mid, qx);

and the same thing with the array R. This should work the same way, but one gives Accepted and the other gives WA. Is there any specific reason why this happens?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English numbertheorist17 2016-01-19 21:42:44 528 Initial revision (published)