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

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


find the numbers

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

• Flowchart 3
• Name-Surname
• Wonder primes
• Round numbers
• Sum less than N
• Perfect numbers
• Sum of N numbers
• How many digits?
• find the numbers
• Fibonacci Series
• SAME OR DIFFERENT
• Binary to decimal
• Decimal to binary
• How many divisors?
• Find the biggest 2
• Find the biggest 3
• Tower of Happiness

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

Если у вас есть предложения или пожелания по работе 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