Posted: Fri Sep 22, 2006 5:54 pm
Huh?? Have you check the value of |(96+32i)^12| ?fh wrote:for the input:
1
96 32
the output is
12
The Online Judge board
https://uva.onlinejudge.org/board/
https://uva.onlinejudge.org/board/viewtopic.php?f=33&t=10831
Huh?? Have you check the value of |(96+32i)^12| ?fh wrote:for the input:
1
96 32
the output is
12
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.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
Ups.. yes, you are correct it's TOO COMPLICATEDMushfiqur 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.
Code: Select all
1. 1
2. 2
3. 4
4. TOO COMPLICATED
Code: Select all
3
10 10
5 10
100 1000
Code: Select all
4
TOO COMPLICATED
TOO COMPLICATED