ibrahimsherif's blog

By ibrahimsherif, history, 6 years ago, In English

http://www.spoj.com/problems/CNTPRIME/

Hi, i am trying to solve this problem its a simple range count segment tree with lazy updates but no matter how i try it gets wrong answer but it outputs correctly everything i try at it.

Here is my code: https://ideone.com/y8V607

  • Vote: I like it
  • -1
  • Vote: I do not like it

| Write comment?
»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

2

2 1

4 4

0 1 2 2

2 1

4 4

1 1 1