Help needed for SPOJ problem CNTPRIME

Правка en2, от embiway, 2020-04-25 15:43:16

Can anyone please help me debug my code for the problem CNTPRIME.

I literally tried everything in my arsenal from changing vectors into arrays , using fast I/O , etc.. I tried to compare my solution against accepted solutions from the internet by checking the outputs against random inputs but the effort went in vain as it only shows WA for sufficiently large tests which I could not use to infer anything :(

Please take some time to look into my code and enlighten me. Thanking in anticipation :)

Теги spoj, #segment tree, #lazy propagation

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский embiway 2020-04-25 15:43:16 6 Tiny change: ' shows WA but sufficien' -> ' shows WA for sufficien'
en1 Английский embiway 2020-04-25 15:42:16 614 Initial revision (published)