Amiri's blog

By Amiri, history, 8 years ago, In English

My submission with long double give me WA: 19816873

My submission with double give me AC: 19816911

Is it a known bug? or I don't know a fact about fstream in CF?

Thanks in advance

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

»
8 years ago, # |
  Vote: I like it +6 Vote: I do not like it

ISO C99 defined %Lf to output long doubles with printf.

However, printf is implemented by C standard libraries, and some evidence show Codeforces is using old style msvcrt, which does not support %Lf.

In fact, long double is not very useful in Codeforces. Since Codeforces usually allow answer with 10 - 6 error to be accepted, the precision of long double is useless.

»
8 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

thanks orz_liuwei — you are correct.

  • »
    »
    8 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I think you replied to the wrong thread...... Actually you want to reply this.