0-Indexing a BIT

Revision en1, by conqueror_of_conqueror, 2016-10-09 01:49:06

Hi, I'm a FiveAtomTree (5-indexed...), and I'm wondering how I can 0-index a BIT easily. I know I can just update upd(index+1, value), but at times it's really inconvenient.

I remember there was a comment on a contest announcement about it, but I forgot it and can't find it...

Anyone wanna hit me up?

Thanks~!

orz

Tags bit, 0-indexed

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English conqueror_of_conqueror 2016-10-09 01:49:06 343 Initial revision (published)