How to output long double values using printf on codeforces?

Правка en1, от 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

Теги bug?, printf, long double, c++

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский memset0c 2020-09-09 12:02:53 10 Tiny change: 'ssion/92332571\n\n`GNU C' -> 'ssion/92331960\n\n`GNU C'
en1 Английский memset0c 2020-09-09 11:59:18 573 Initial revision (published)