qoo2p5's blog

By qoo2p5, 4 years ago, translation, In English

Hello Codeforces Community!

I invite you all to join HackerRank's 101 Hack 54 on May 2, 2018, at 15:00 UTC.

There will be five problems in the round and three hours for you to solve them. The contest will be rated and the top ten contestants will receive HackerRank T-shirts!

Top 100 coders will get contacted by HackerRank for a job opportunity. (India only)

The problems are prepared by me. Thanks to kevinsogo, who tested and helped in setting up this contest.

I hope you’ll enjoy the problems and find them interesting.

Good luck and happy coding!

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

»
4 years ago, # |
  Vote: I like it +7 Vote: I do not like it

Auto comment: topic has been translated by qoo2p5 (original revision, translated revision, compare)

»
4 years ago, # |
  Vote: I like it +38 Vote: I do not like it

Starts in 15 minutes

»
4 years ago, # |
  Vote: I like it +11 Vote: I do not like it

For the second question, Bus Stops, I did exactly what is given in the editorial, but it fetched my only 32.5/45 points,
I've also checked the first 1300 answers of a WA testcase, they are all correct.
link to solution

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +23 Vote: I do not like it

    I think I made the same mistake. The first bus arrives at time zero. Your solution fails something like this case I think:

    3
    0 10 100
    1 5
    1
    11 0 1
    

    Expected output is 20, yours prints 19.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +28 Vote: I do not like it

    Replace bc=ceil(bc) with bc=max(0.0, ceil(bc)) and you'll get accepted.

»
4 years ago, # |
Rev. 2   Vote: I like it +28 Vote: I do not like it

I'm willing to give my t-shirt to the second div1 person who messages me.
Update: It's over

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Do they seriously give T shirt because I came once in top 10 and in top 50 of codesprint. So far there was no message from their side.

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +15 Vote: I do not like it

      They do. I have 3 of them at home and haven't waited for more than 2-3 weeks to get the message.