ÀÂÒ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

613. F - Division

Time Limit: 2 seconds
Memory Limit:65535KB
Points:10
View Problem Statistics Submit Problem added Administrator

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


View Problem Statistics Submit Author/source:
Problems from Contests / Kovrov IT-festival / KIT-2008 /
612. E - Points 613. 614. G - String Multiplication 615. H - Lawyers Council
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.063 sec.
© Copyright VSTU, AVT, Nosov D.A.