ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1420. Integer-Valued Complex Division

To ACers.
Posted by AlMag 27 Apr 2007 14:08
Can you generate me some tests with answers?
I'd like to check my program.
Re: To ACers.
Posted by partisan 19 Nov 2008 21:19
Put R+,Q+. Try this:

1000000 1000000
1000000 1000000
1

1000000 1000000
999999 1000000
3

1000000 0
1 1000000
2

Re: Re: To ACers.
Posted by vav[14] 25 Mar 2009 14:04
I think that answer on the last test must be 3.
(1+1000000i)*(-i)+i=1000000
(1+1000000i)*(1-i)-1-999999i=1000000
(1+1000000i)*0+1000000=1000000
Re: To ACers.
Posted by balandini 17 Jan 2013 23:12
Some random tests:
21 56
32 45
3

90 87
45 23
4

234 876
129 623
2

12345 65
8967 1345
3

4563 897
156 734
4

4 6
7 8
3