HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Linear Data Structures: Arrays > problem:


50972 - Division

Guest
• Discussion of problem (2)

Section problems

• 50986 - The Oldest Person
• 51173 Question 5
• 50873 - Max Frequency
• 51009 - Sum of the nth row
• 51107 - Factorial
• ECE - Question 1
• CEN - Question 1
• Reflektimi i pikes
• 50972 - Division
• 51135 - Class Average 1
• 51136 - Class Average 2
• 51094 - Passing the course
• Question 1
• 51069 - Last Digit of a Fibonacci Nu...
• 51130 - Permutation of Everything
• 51073 - Campus Tours for High Sch...
• 50994 - The Most Crowded Station

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.
Автор: Фёдор Меньшиков, ВГПУ.

Two numbers are given. Your task is to find their quotient and remainder of the division.

Input
In the first line a dividend is written, in the second - a divisor. Every number may contain from 1 to 5 000 000 digits. All digits in both numbers are similar.
Output
Write the quotient in the first line, the remainder in the second.

Input Output
111
11
10
1

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

www.contester.ru