I want to know the difference between a long double and a double
问题 For any algorithmic problem, an error of 10 -6 is allowed. I declared a long double as a variable in my first solution and got a WA. But, when I declared a variable as double , I got an AC. I want to know why this decision was made because long double is known to be more accurate than double . I have not changed anything except variables, output methods. Here is my code: #include <iostream> #include <string> #include <cmath> #include <vector> #include <queue> #include <deque> #include