• VNOJ
  • Home
  • PRoblems
  • Submissions
  • Users
    • Organizations
  • Contests
  • Tag
  • About
    • FAQ
    • Judges
    • Devlog
    • Github
    • Tickets
  • Wiki
  • Thư viện đề thi
VI EN Log in  or  Sign up

hh123123

  • About
  • Statistics
  • Blogs

Problems solved: 21
Rank by points: #1365
Total points: 10.83
Contribution points: 2

View submissions

1 contest written
Rank by rating: #94
Rating: 1885
Min. rating: 1885
Max rating: 1885

About

hh123123

lim=n+15
b=[0]*(lim+1)
def upd(i,x):
    i+=2
    while i<=lim:
        b[i]+=x
        i+=i&(-i)

def get(i):
    i+=2
    ans=0
    while i>0:
        ans+=b[i]
        i-=i&(-i)
    return ans

def gett(l,r):
    return get(r)-get(l-1)

Badges & Awards

This user has not earned any badges or awards.

«    »
Sun
Mon
Tues
Wed
Thurs
Fri
Sat
Less
More

Rating history

, #

proudly powered by DMOJ | follow us on Github and Facebook