ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Неотсортированные > задача:


find the numbers

Задачи раздела

• City Tour
• Dijkstra
• Fibonacci Series
• Find the biggest 2
• Find the biggest 3
• Sign
• Timer
• Tickets
• find the numbers
• Flowers
• Flowchart 1
• Flowchart 2
• Flowchart 3
• Connected components
• Going to the Movies
• How many digits?
• How many divisors?

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

Title

Title:  FIND THE NUMBERS

 

Description:

 

You will be given two numbers S and M. S is the sum of A and B. M is the multiplication of A and B. Your task is to find A and B.

 

Input:

 

Input contains two numbers. First one is S and the second one is M.

 

Output:

 

Output should contain two numbers, A and B in sorted order.(A<=B)

 

Sample input:

 

5 6

 

Sample output:

 

2 3

 

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

www.contester.ru