BIT problem from Light OJ (1097 — Lucky Number)

Revision en1, by isat1729, 2016-10-11 18:41:02

Problem ID: 1097

Problem Name: Lucky Number

Problem Link: http://lightoj.com/volume_showproblem.php?problem=1097

My solution link: http://ideone.com/MF0yjB

How do I improve the complexity of my solution? Any help is really appreciated.

Tags light oj, binary indexed tree

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English isat1729 2016-10-11 18:41:02 294 Initial revision (published)