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

×

WA in CHEFMOVR

I am not able to solve my error in CHEFMOVR problem of August long challenge. Can someone please help me in solving it. Code

Thanks in advance .

asked 21 Aug '17, 12:08

sumanbhardwaj's gravatar image

3★sumanbhardwaj
11
accept rate: 0%

edited 21 Aug '17, 17:39


Unable to find a TC where your code fails. But i think there can be bugs due to how you are dealing with them. You can refer to my solution and see if you can find out the difference-

https://www.codechef.com/viewsolution/14775292

EDIT: Your code is failing for large values :/

Input
1
4 1
1 1 1 99999997
Your Output
124999997
Correct Output
149999994
link

answered 21 Aug '17, 18:48

vijju123's gravatar image

5★vijju123 ♦♦
15.5k12066
accept rate: 18%

edited 21 Aug '17, 19:30

toggle preview
Preview

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:

×193

question asked: 21 Aug '17, 12:08

question was seen: 204 times

last updated: 21 Aug '17, 14:00