water's blog

By water, 12 years ago, In English

I saw many people got wrong on test10 in problem A #174 DIV1 . It says "wrong answer 103366th numbers differ — expected: '-1310.8301270', found: '-1310.8321289', error = '0.0000015",what's wrong? 3352253

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
12 years ago, # |
  Vote: I like it +3 Vote: I do not like it

If you know, it's common problem, why didn't you try to read other discussions?

3352323 It's running on 40 know with minor fix.

»
12 years ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

Just make val[last]=0 and add[last]=0 in the case when choose =3; your code link

EDIT : I am a bit too slow!!!

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

When choose == 2, add a line 'add[last] = 0;' and it will pass.