What is the meaning of pairwise distinct integers?

I am a newbie on Codechef.
Any help will be appreciated :slight_smile:
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! :slight_smile:

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 ).

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.

1 Like