3 条题解

  • 2
    @ 2025-1-18 21:55:40
    using namespace std;
    double n;
    int main(){
    	cin>>n;
    	cout<<fixed<<setprecision(2)<<abs(n);//abs是取绝对值的函数
    	return 0;
    }
    
    • 1
      @ 2025-1-26 15:55:49

      #include<bits/stdc++.h> using namespace std; int main(){ double n; cin>>n; cout<<fixed<<setprecision(2)<<fabs(n);

      return 0;
      

      }

      • 0
        @ 2025-2-18 20:33:13

        #include<bits/stdc++.h>** ** using namespace std; int main(){ ** double a;** ** cin >> a;** ** cout << a-2*a<<endl;** ** return 0;** }

        • 1

        信息

        ID
        426
        时间
        1000ms
        内存
        128MiB
        难度
        4
        标签
        (无)
        递交数
        126
        已通过
        62
        上传者