You are not logged in. Please login at to post your questions!


[closed] WA in LEADGAME

I am getting Wrong Answer in LEADGAME. What have I missed out?

asked 28 Mar '14, 21:47

sandy999's gravatar image

accept rate: 10%

closed 18 Jan '15, 12:55

The question has been closed for the following reason "The question is answered, right answer was accepted" by sandy999 18 Jan '15, 12:55

You have understood the question incorrectly. The exact solution is somewhat different. You have to find out the difference between the cumulative values at any instance and among that you have to give the maximum difference. The example is explained below : <brL

1 2 Cummulative difference upto this index 0 and is 1 with winner 2
2 3 Cummulative difference upto this index 1 and is 2 with winner 2
3 4 Cummulative difference upto this index 2 and is 3 with winner 2

So answer is 1 3.


answered 28 Mar '14, 22:55

vermashubhang's gravatar image

accept rate: 23%

Oh yes! I totally ignored the 1st scoresheet in the problem! Thanks a lot! :)

(28 Mar '14, 23:21) sandy9992★

Your Welcome! @sandy999 Please accept the solution so that the question could be closed.

(28 Mar '14, 23:24) vermashubhang5★

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 28 Mar '14, 21:47

question was seen: 448 times

last updated: 18 Jan '15, 12:55