Code: Select all
-1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3+-1000/-3
-1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3
-1000/-3+-1000/-3+-1000/-3-1000/-3
-1000/-3+-1000/-3+-1000/-3
-1000/-3+-1000/-3
-1000/-3
Moderator: Board moderators
Code: Select all
-1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3+-1000/-3
-1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3
-1000/-3+-1000/-3+-1000/-3-1000/-3
-1000/-3+-1000/-3+-1000/-3
-1000/-3+-1000/-3
-1000/-3
ivan.cu wrote:Thank, what is the AC output for:
Code: Select all
-1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3+-1000/-3 -1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3 -1000/-3+-1000/-3+-1000/-3-1000/-3 -1000/-3+-1000/-3+-1000/-3 -1000/-3+-1000/-3 -1000/-3
Code: Select all
2000.000
1666.667
1333.333
1000.000
666.667
333.333
The problem description allows them. If they are not in OJ's inputs, the inputs are weak. Anyway, you can easily check it by yourself by one extra submition.Tosgin wrote:Hi! I also have WA and I would like to know are there any inputs from the judge when there are multiple unary operators like: --2 ?
Well, try to rewrite it to c/c++ and you'll see if java is the issue.ivan.cu wrote:I suspect that the mistake is in floating point error whit Java, i try anything and nothing, i'm feeling bad for this, may be i make a terrible error and i cannot se it.
Code: Select all
-1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3+-1000/-3
-1000/-3+-1000/-3+-1000/-3-1000/-3+-1000/-3
-1000/-3+-1000/-3+-1000/-3-1000/-3
-1000/-3+-1000/-3+-1000/-3
-1000/-3+-1000/-3
-1000/-3
2*-0.5+-0.5*3+-15.5
1/2/2
-3.0
3
4.0+3.0/5.0
1*2*3+1+1*2+1*2*3*4
--9
-1-1+9/3
---9
-9--+-9
100
-10+2+2
-10*0
100
-10+2+2
--9
-1-1+9/3
---9
-9--+-9
3.1*3.1---0.2
Code: Select all
2000.000
1666.667
1333.333
1000.000
666.667
333.333
-18.000
0.250
-3.000
3.000
4.600
33.000
9.000
1.000
-9.000
-18.000
100.000
-6.000
0.000
100.000
-6.000
9.000
1.000
-9.000
-18.000
9.410
Code: Select all
10-8+5
10+8-5
10*8/5
10/8*5
Code: Select all
7.000
13.000
16.000
6.250
I try again, now in C++ and my WA persist. Please, some one see my error?Martin Macko wrote:Well, try to rewrite it to c/c++ and you'll see if java is the issue.ivan.cu wrote:I suspect that the mistake is in floating point error whit Java, i try anything and nothing, i'm feeling bad for this, may be i make a terrible error and i cannot se it.
Code: Select all
Code was remove, i got AC now.