How to output long double values using printf on codeforces?

Revision en1, by memset0c, 2020-09-09 11:59:18

Excuse me, can anyone tell me how to use printf to output long double values?

I tried to use %Lf, but it just output zero when I chose GNU C++11.

However, I got AC when choosing GNU C++17 (64).

Can anyone tell me what should I do? Thank you~

GNU C++11 submission (WA on 1): https://codeforces.me/contest/1209/submission/92332571

GNU C++17 (64) submission (AC): https://codeforces.me/contest/1209/submission/92331832

Tags bug?, printf, long double, c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English memset0c 2020-09-09 12:02:53 10 Tiny change: 'ssion/92332571\n\n`GNU C' -> 'ssion/92331960\n\n`GNU C'
en1 English memset0c 2020-09-09 11:59:18 573 Initial revision (published)