HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


find the numbers

Section problems

• 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

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.

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