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

×

CVW - Editorial

PROBLEM LINK:

https://www.codechef.com/COWS2016/problems/CVW

Author: acesprime
Tester: acesprime
Editorialist: acesprime

DIFFICULTY:

MEDIUM.

PREREQUISITES:

Array

PROBLEM:

Problem is to arrange numbers from 1 to N in such a way that absolute value of difference of the ith number from the position of ith number in the arrangement , to be equal to a certain value K.

AUTHOR'S AND TESTER'S SOLUTIONS:

http://ideone.com/GU7uLE

asked 15 Oct '16, 14:26

acesprime's gravatar image

0★acesprime
41
accept rate: 0%

edited 12 Jan, 13:07

admin's gravatar image

0★admin ♦♦
17.1k347485513

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:

×12,088
×1,913
×536
×31

question asked: 15 Oct '16, 14:26

question was seen: 458 times

last updated: 12 Jan, 13:07