HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Search > problem:


50547 - Close Pair

Guest
• Review clarifications (2)

Section problems

• 50791 - Mine field
• 50867 - Average of the Best Grades
• 50460 - Median of 3 Numbers
• 50566 - Grade Point Average (GPA)
• 50573 - Count and Sum
• 50575 - Number of Prime numbers
• 50576 - Number of Perfect numbers
• 50588 - Processing the list of numbers
• 50547 - Close Pair
• 50238 - The smallest number
• 50437 - Age Labeling
• 50457 - The Number of Winners
• 50478 - Letter Grades
• 50782 - Max of N integers
• 50552 - Casual shoes
• 50562 - List of students
• 50570 - Prime numbers in the seg...

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Ibrahim Mesecan.

Close Pair

Question: You will be given three integer numbers. Print the two numbers whose difference is the closest. Show any two, if there are many numbers giving the same minimum difference.

Input specification
You will be given three integers where each number is between -10000 and 10000.

Output specification
Show two integer numbers.

 Sample Input I     Sample Input II   
 8 5 6
 6 -5 6
 Sample Output I     Sample Output II   
 5 6
 6 6


Для отправки решений необходимо выполнить вход.

www.contester.ru