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

×

Aug long challenge :Chef mover

What will be the answer of 1 1 7 with d=1? Will it be -1 or something else?

asked 23 Aug '17, 23:56

nikmul19's gravatar image

1★nikmul19
324
accept rate: 0%


You should try to copy paste someone else's AC code and run this test case against it. That way, you wont have to wait for someone to answer as sometimes people get busy and answers have to wait.

link

answered 24 Aug '17, 00:12

vijju123's gravatar image

4★vijju123 ♦
13.8k11138
accept rate: 19%

Answer is hidden as author is suspended. Click here to view.

answered 23 Aug '17, 23:58

raj79's gravatar image

4★raj79
(suspended)
accept rate: 10%

edited 24 Aug '17, 00:00

can we make intermediate numbers negative?

(24 Aug '17, 00:08) nikmul191★

what I wish to ask is - can I do it like this 1 1 7

2 0 7

2 4 3

3 3 3

(24 Aug '17, 00:10) nikmul191★
1

Yes, its fine. as long as indices have diff of 1 and answer is minimum.

But best way is 1 1 7==>1 5 3 ==>3 3 3 .

(24 Aug '17, 00:14) vijju123 ♦4★
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: 23 Aug '17, 23:56

question was seen: 130 times

last updated: 24 Aug '17, 00:14