Блог пользователя kingofnumbers

Автор kingofnumbers, история, 7 лет назад, По-английски

Hello everyone!

I would like to invite you to participate in Hackerearth July Circuits 2017. It's a long contest that will start on July 28, 2017, 09:00 PM IST (already started) (check your timezone). Contest will run for 9 days.

The problemset consists of 7 traditional algorithmic tasks of various difficulties and 1 approximate problem. For traditional algorithmic tasks, you will receive points for every test case your solution passes — so you can get some points with partial solutions as well. For the approximation task, your score depends on the best solution in the contest so far. Check contest page for more details about in-contest schedule and rules.

As usual, there will be some nice prizes for the top five competitors:

  • $100 Amazon gift card + HE t-shirt.
  • $75 Amazon gift card + HE t-shirt.
  • $50 Amazon gift card + HE t-shirt.
  • HE t-shirt.
  • HE t-shirt.

Good luck to everyone, and I hope to see you at the contest :)

  • Проголосовать: нравится
  • +28
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

This seems good

Gl & Hf everyone

»
7 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

If girl wins the prize, will you give her SHE t-shirt? :D

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can someone please explain why the following code works for the last problem?

https://www.hackerearth.com/submission/10427144/