XXXXXXXX solution

Revision en1, by zeref_dragoneel, 2017-04-06 00:38:04

Problem link: http://www.spoj.com/problems/XXXXXXXX/

Solution Link: http://ideone.com/Myb8M6

Can someone help me debug my solution? I am trying to use segtree + treap in the code.

Thanks.

Tags segment tree, implicit treap

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English zeref_dragoneel 2017-04-06 00:38:04 214 Initial revision (published)