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

×

what's wrong with the code-likecs03

asked 18 Sep '17, 00:31

viralivora's gravatar image

5★viralivora
1838
accept rate: 14%

I tried hard, seems perfect to me :|

(18 Sep '17, 01:13) swetankmodi6★

Why a[0] = 1

Consider array 2 3 4 K = 3

I believe your code gives 0 while correct answer is 1.

Have a look at editorials i wrote.. here

Hope that clarifies...

link

answered 18 Sep '17, 01:29

taran_1407's gravatar image

6★taran_1407
3.6k1246
accept rate: 24%

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:

×2,540
×466
×290

question asked: 18 Sep '17, 00:31

question was seen: 266 times

last updated: 18 Sep '17, 01:29