570D — (Maybe) weak testcases

Revision en1, by bluemmb, 2015-08-27 23:56:57

Maybe this problem 570D - Tree Requests have weak testcases!

Imagine this tree :

and these queries :

1 250001

2 250001

...

250000 250001

Now How 12519227 got ACCEPTED ! In function run , for(ans1..ans2) can be O(n). So this solution is O(n^2).

I checked it in polygon and it get TimeLimit even with 4 second.

I want to know, Is it OR I am wrong ??

Tags weak_test_data, tree requests, round #570

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English bluemmb 2015-08-27 23:56:57 497 Initial revision (published)