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

×

[closed] WA in LEADGAME

http://www.codechef.com/viewsolution/3651481

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

asked 28 Mar '14, 21:47

sandy999's gravatar image

2★sandy999
39111638
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

3
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.

link

answered 28 Mar '14, 22:55

vermashubhang's gravatar image

5★vermashubhang
1.5k11025
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×21
×13

question asked: 28 Mar '14, 21:47

question was seen: 448 times

last updated: 18 Jan '15, 12:55