Page 2 of 2
Posted: Fri Sep 22, 2006 5:54 pm
fh wrote:for the input:

1
96 32

the output is

12
Huh?? Have you check the value of |(96+32i)^12| ?

Posted: Fri Sep 22, 2006 6:18 pm
Ah..., it seemed my program was overflow and break on 12

Not only that, my overflow error also causes this problem:

1
940 940

My output is

TOO COMPLICATED

it should be 4

So, the Judge is very very lacking critical input case then

This problem need to be rejudged

Yes, I agree that there are only 4 different kind of outputs

Posted: Mon Apr 09, 2007 3:21 pm
FH Wrote:
Not only that, my overflow error also causes this problem:

1
940 940

My output is

TOO COMPLICATED

it should be 4

So, the Judge is very very lacking critical input case then
This problem need to be rejudged
May be theres problem in Judge for critical input of this problem. But in the above case the correct output will be TOO COMPLICATED not 4.
Because:
(940+940i)^2 = 1767200i
(1767200i)^2 = -3122995840000
here |-3122995840000| is greater than 2^30.

Posted: Mon Apr 09, 2007 6:14 pm
Mushfiqur Rahman wrote:But in the above case the correct output will be TOO COMPLICATED not 4.
Because:
(940+940i)^2 = 1767200i
(1767200i)^2 = -3122995840000
here |-3122995840000| is greater than 2^30.
Ups.. yes, you are correct it's TOO COMPLICATED
Sorry for the mistake.

### Re: 11042 - Complex, difficult and complicated

Posted: Sat Sep 13, 2008 6:15 am
may be judge input there no such case like 96 32.
becoz i also get ACC using this

Code: Select all

``````1. 1
2. 2
3. 4
4. TOO COMPLICATED
``````
i think there no need calculation. think simple

### Re: 11042 - Complex, difficult and complicated

Posted: Tue Oct 19, 2010 7:57 pm
input:

Code: Select all

``````3
10 10
5 10
100 1000``````
output:

Code: Select all

``````4
TOO COMPLICATED
TOO COMPLICATED``````