Instructions
You are given a list of integers. Write a program which prints all the integer pairs in the list that repeat. If the list has more than one such pain
, paim
all the pairs in consecutive lines in a sorted order. Sorting should be performed on the first integer of the pair.
THE LET 00:36:43
Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings while reading the input er while pring us tres
contribute to the standard output and test cases will fail.
Input Format:
First Line has an integer, N.
Second Line has N integers separated by single white spaces.
Output Format:
The integer pairs which repeat are printed one in each line, sorted in ascending order.
Constraints:
1) 4<= N<= 100
11) The list has at least one such integer pair
III) The occurrences of the repetitions must always be distinct.
Sample Input 1:
5
12312
Sample Output 1:
the output is 12
Answers
Answered by
0
Answer:
bg svafustxsyfjxdefyshsrjsehsgrrrh ds d gd ddttd
dhystysgstjgshxegatvfyfs फ् dhdfucsgff
Similar questions