fonmagnus's blog

By fonmagnus, history, 4 months ago, In English

Last night I worked on this problem on Codeforces round 823 1730B - Собрание на прямой

I've made two submissions :

  1. Wrong answer on test 3 — 173469198
  2. Accepted — 173524856

The accepted one using a setprecision function while the wrong answer one is not

After I take a look at the cause, then it stumbles upon this following message from checker : wrong answer 36th numbers differ - expected: '40759558.0000000', found: '40759600.0000000', error = '0.0000010'

How come the difference becomes very large? I know floating point has its own "weaknesses" for handling precision and stuff, but how come the difference of using "setprecision" and not using them produce a very different outcome?

Appreciate for the answers because I'm curious. Thanks!

Full text and comments »

 
 
 
 
  • Vote: I like it
  • +7
  • Vote: I do not like it

By fonmagnus, history, 11 months ago, In English

Hello, I'm new to Codeforces Polygon. Right now I'm working on a problem but when I put one of the Testcase Generator it brings me to the white screen and now everytime I access to that problem it brings me to the white screen (funny enough, it doesn't happen to another problem provided as example)

How should I solve this?

Error

Full text and comments »

 
 
 
 
  • Vote: I like it
  • +4
  • Vote: I do not like it