HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Search > problem:


50547 - Close Pair

Guest
• Review clarifications (2)

Section problems

• 50573 - Count and Sum
• 50575 - Number of Prime numbers
• 50576 - Number of Perfect numbers
• 50586 - Prime Palindromes
• 50588 - Processing the list of numbers
• 50589 - The Number of Eggs Sold
• 50783 - The smallest number
• 50792 - The student with the highest...
• 50547 - Close Pair

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