Please subscribe to the official Codeforces channel in Telegram via the link: https://t.me/codeforces_official. ×

kingofnumbers's blog

By kingofnumbers, history, 17 months ago, In English,

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 :)

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

»
17 months ago, # |
  Vote: I like it +5 Vote: I do not like it

This seems good

Gl & Hf everyone

»
17 months ago, # |
  Vote: I like it 0 Vote: I do not like it

GL everyone

»
17 months ago, # |
  Vote: I like it +6 Vote: I do not like it

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

»
16 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

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