|
|
back to boardI've got AC with 1e-8 It's your epsilon for compare or minimum possible speed for object? (Sorry for stupid question if I'm wrong in my suppose) Problem isn't in this. I had crash #8 (Invalid floating point operation) and just find the problem and got AC. This is 'eps' for comparisons (mostly against zero). I don't care about speed, I just find minimum non-negative time. Non-negative means 't > -eps'. Also, right before output I write 'if(t<0) t=0' to protect from -0.000 output. Same thing takes place before 'sqrt' evaluation. |
|
|