#include <iostream> #include <cmath> using namespace std; int main() { double val; while (cin >> val) { // 注意 while 处理多个 case int flag = 1; if (val < 0) { flag = -1; val = -val; } double left = 0.0; // VAL ...