2 条题解

  • 0
    @ 2025-2-13 21:28:10

    using namespace std; int main() { int n; cin>>n; if(n>=0) { cout<<sqrt(n); } else { cout<<"error"; } return 0; }```language

    • 0
      @ 2024-12-21 21:07:10
      1. #include<bits/stdc++.h>
      2. using namespace std;
      3. iny main(){
      4. int n;
      5. cin>>n;
      6. cout<<sqrt(n);//平方根用sqrt表示
      7. }
      • 1

      信息

      ID
      42
      时间
      1000ms
      内存
      256MiB
      难度
      4
      标签
      递交数
      93
      已通过
      46
      上传者