ÀÂÒ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

613. Division

Time Limit: 2 seconds
Memory Limit:65536KB
Points:100
View Problem Statistics Submit Problem added debug

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 Problem discussion Author/source:
Problems from Contests and Camps / Kovrov contests / KIT-2008 /
610. Brackets 613. 615. Lawyers Council 608. Math and Soldiers 612. Points
time generating 0.125 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.