3 条题解

  • 1
    @ 2026-5-23 11:06:35

    #include <bits/stdc++.h> using namespace std;

    int main() { double a; cin >> a; printf("%.2lf", fabs(a));

    return 0;
    

    }

    • 0
      @ 2026-5-23 15:22:51

      #include <bits/stdc++.h> using namespace std;

      int main() { double a; cin >> a; if (a < 0) { cout << fixed << setprecision(2) << (-a); return 0; } cout << fixed << setprecision(2) << a; return 0; }

      • -1
        @ 2026-5-23 11:04:59

        #include <bits/stdc++.h> using namespace std;

        int main () { double n; cin >> n; cout << fixed << setprecision(2) << fabs (n);

        return 0;
        

        }

        • 1

        信息

        ID
        30925
        时间
        1000ms
        内存
        256MiB
        难度
        5
        标签
        (无)
        递交数
        118
        已通过
        46
        上传者