ADDMUL Wrong Answer Codechef

Revision en1, by sandeep.gprs, 2016-06-28 18:26:31

Hi, I have been trying hard to solve the subtask 3 (for 30 points) of the problem []( https://www.codechef.com/problems/ADDMUL)

I have implemented segment tree with lazy propogation and everything seems fine..But still getting WA. Can anyone find a test case where the solution not works or any mistake in the code? (Please keep in mind that the solution is targeted for Subtask 3 only i.e queries of type 3 will not be there).

My solution goes here https://www.codechef.com/viewsolution/10636427

Thanks in advance.

Tags segment tree, codechef long

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sandeep.gprs 2016-06-28 18:26:31 556 Initial revision (published)