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


What is the meaning of pairwise distinct integers?

I am a newbie on Codechef. Any help will be appreciated :) If it is given in the problem statement that : "All elements of the given array are pairwise distinct, does it mean that all the elements of the array are distinct ?" Thanks in advance! :)

asked 04 Jan, 20:02

karangreat234's gravatar image

accept rate: 0%

It means that each pair of integers in the sequence are distinct. In other words, there are no 2 integers in the sequence that are the same.

Eg: 2,4,3 follows this whereas 2,4,3,4 does not ( because there is a pair of integers that are NOT distinct namely 3,3 ).

(05 Jan, 01:05) psaini724★

pairwise distinct means that,each element can't be repeat more than once.

Ex: 1 2 200 345 12 45 ---> In this one,all are pairwise distinct.

1 2 200 200 12 12 ---> This is not pairwise distinct since, 200 12 are occur 2 times each.


answered 2 days ago

siva140191's gravatar image

accept rate: 12%

edited 2 days ago

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

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


question asked: 04 Jan, 20:02

question was seen: 866 times

last updated: 2 days ago