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

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


Division

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

• Brackets
• Triangles
• String Multiplication
• Nice Floor
• Strange Numbers
• Factorial
• Boundary Troops
• ATM
• Division
• Unusual Lottery
• Meat store
• Tetris 3D
• Bit Decoder
• Knights of the Rook
• Coins
• Primes
• Providers

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Автор: Фёдор Меньшиков, ВГПУ.

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