Why does this happen?

Правка en1, от numbertheorist17, 2016-01-19 21:42:44

I was trying 484E - Sign on Fence. 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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский numbertheorist17 2016-01-19 21:42:44 528 Initial revision (published)