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!
Auto comment: topic has been translated by qoo2p5 (original revision, translated revision, compare)
Starts in 15 minutes
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
I think I made the same mistake. The first bus arrives at time zero. Your solution fails something like this case I think:
Expected output is 20, yours prints 19.
Replace
bc=ceil(bc)
withbc=max(0.0, ceil(bc))
and you'll get accepted.I'm willing to give my t-shirt to the second div1 person who messages me.
Update: It's over
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.
They do. I have 3 of them at home and haven't waited for more than 2-3 weeks to get the message.