12 条题解

  • 6
    @ 2024-2-22 23:10:32
    #include<iostream>
    using namespace std;
    int main()
    {
        double a,b,n;
        cin>>a>>b;
        n=b/a*100;
        printf("%.3f%%",n);
        return 0;
    }
    
    • 3
      @ 2024-2-22 11:28:22

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

      • 0
        @ 2024-2-22 11:23:52

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

        • 0
          @ 2024-2-22 9:34:31
          nclude <iostream>
          using namespace std;
          int main(){ 
              double a,b,n;
              cin>>a>>b;
              n=b/(a/100);
              printf("%.3lf",n);cout << "%" ;
              return 0;
            }
          
          • -1
            @ 2024-2-22 17:33:32

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

            • -1
              @ 2024-2-22 11:22:16

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

              • -1
                @ 2024-2-22 10:36:46
                #include<bits/stdc++.h>
                using namespace std;
                int tot,x;
                int main(){
                cin >> tot >> x;
                cout << fixed << setprecision(3) << 100.0*x/tot << '%';
                }
                
                • -1
                  @ 2024-2-22 10:06:24

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

                  • -1
                    @ 2024-2-22 10:03:40
                    #include <iostream>
                    using namespace std;
                    int main(){ 
                        double a,b,n;
                        cin>>a>>b;
                        n=b/(a/100);
                        printf("%.3lf"%%",n);
                        return 0;
                      }
                    
                    
                    • -1
                      @ 2024-2-22 9:13:23
                      #include <iostream>
                      using namespace std;
                      int main(){ 
                          double a,b,n;
                          cin>>a>>b;
                          n=b/(a/100);
                          printf("%.3lf",n);cout << "%" ;
                          return 0;
                        }
                      
                      
                      • -2
                        @ 2024-2-22 0:54:14

                        👀️

                        #include <iostream>
                        using namespace std;
                        int main(){ 
                            double a,b,n;
                            cin>>a>>b;
                            n=b/(a/100);
                            printf("%.3lf",n);cout << "%" ;
                            return 0;
                          }
                        
                      • -5
                        @ 2024-2-22 9:15:40
                        #include <iostream>
                        using namespace std;
                        int main(){ 
                            double x,y,n;
                            cin>>x>>y;
                            n=y/(x/100);
                            printf("%.3lf",n);
                            cout << "%";
                            return 0;
                          }
                        
                      • 1

                      信息

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