2 条题解

  • 0
    @ 2025-2-14 17:46:11
    #include <bits/stdc++.h>
    #define yy return 0;
    using namespace std;
    double a,b;
    int main(){
    	cin>>a>>b;cout<<fixed<<setprecision(3)<<b/a*100<<"%"<<endl;yy
    }
    • 0
      #include <bits/stdc++.h>
      using namespace std;
      double a,b,c;
      int main()
      {
      	cin>>a>>b;
      	c=b/a*100;
      	cout<<fixed<<setprecision(3)<<c<<"%"<<endl;
          return 0;
      }
      • 1

      信息

      ID
      4462
      时间
      1000ms
      内存
      128MiB
      难度
      1
      标签
      (无)
      递交数
      217
      已通过
      129
      上传者