shashank21j's blog

By shashank21j, 12 years ago, In English

Hi!

Ad Infinitum is back with Infinitum July'14, a monthly contest restricted to mathematics domain, held on HackerRank.

Register at https://www.hackerrank.com/infinitum-jul14
The contest commences on 11th July 15:30 UTC. You are allowed to enter the contest anytime, for tie breaking the timer will start when you view the challenge, which allows you to start late at your convenience, but once started try to finish as fast as possible to be on top of the leaderboard :)

It's a 2 day contest with 8 problems (3 Easy, 3 Medium, 2 Hard)
Scoring Distribution: 20 20 20 40 60 80 100 120

problem statements in English, Russian and Chinese

Top 10 on leaderboard gets Cool HackerRank T shirt

Contributers
kevinsogo
tmt514
Bidhan
darkshadows
amitp08
caopeng
aka_007

Detailed editorials will be available by the end of contest :) I suggest you to try all challenges and at the end of contest understand the solutions.

GL&HF

  • Vote: I like it
  • +29
  • Vote: I do not like it

»
12 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Problems are too easy for a 2 day contest :(

  • »
    »
    12 years ago, hide # ^ |
     
    Vote: I like it +45 Vote: I do not like it

    winger, Congrats!

    Contest is built by the community, if you feel problems were not challenging enough please come forward and contribute.

    But just to clear so far you are the only person to finish all problems. Also, contest is more about learning and solving, so the duration is deliberate for the beginners and learners.

    I am sorry if the contest disappointed you.

»
12 years ago, hide # |
Rev. 4  
Vote: I like it +13 Vote: I do not like it

How to solve the last problem?

I have the formula:

But how to calculate this expression quickly? I managed to get only 55 points with O(NlogK) for a query.

»
12 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

rating?