Блог пользователя ibrahimsherif

Автор ibrahimsherif, история, 9 лет назад, По-английски

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

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

2

2 1

4 4

0 1 2 2

2 1

4 4

1 1 1