2 条题解

  • 1
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	double a,b;
    	cin>>a>>b;
    	cout<<fixed<<setprecision(3)<<1.0*b/a*100<<"%";
        return 0;
    }
    

    制作不易,点个赞再拿走嘛

    • 0
      @ 2025-3-5 16:58:44

      #include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin >> a >> b ; printf("%.3lf",b/a*100); cout<<"%"; return 0; }

      • 1

      信息

      ID
      12
      时间
      1000ms
      内存
      256MiB
      难度
      1
      标签
      递交数
      242
      已通过
      97
      上传者