HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Array and Matrices > problem:


50653 - Long Divide

Guest
• Review clarifications (1)

Volume problems

• 50323 - Filtering Contact List
• 50364 - Student averages
• 50756 - Average of the Nth Student
• 50758 - National Elections - Revisited
• 50458 - Weekly Report
• Raporti Javor
• 50555 - Frequency of Letters
• 50592 - Matrix Multiplication
• 50653 - Long Divide
• 50767 - Censor
• 50792 - The student with the highest...
• 060. 50389 - Reverse an Array
• 100. 50330 - Find the average of n ...
• 110. 50359 - Mode of a Series
• 120. 50329 - Draw Matrix-1
• 120. 50331 - Number of Numbers o...
• 155. 50726 - Pascal Triangle - 1

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.
Prepared by Ibrahim Mesecan.

Long Divide

Shqip
When we study programming, normally, we can do arithmetic operations on the numbers which are less than 2 billion or 4 billion (p.s. if you are using "long long" it can go until 20 digits :). 4 billion has got 10 digits. Write a program that divides a 100 digit number by another integer. For Example: 2244444444444444444444442 divided by 2 is 1122222222222222222222221
Ex.2: 12345678 divided by 123 is 100371

Input specification
The first line contains a number n (where 1 ≤ n ≤ 200), the length of the dividend, then the dividend number itself. The secondline contains an integer less than or equals 2 billion.

Output specification
Show the quotient with no decimals (no digits after the floating point).

Input
5 33333
3
Output
11111

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

www.contester.ru