8 条题解

  • 4
    @ 2022-10-20 17:26:33
    #include<stdio.h>
    #include<iostream>
    using namespace std;
    int main(){
        char a;
        int b;
        float c;
        double d;
        cin >> a>>b>>c>>d;
        cout<< a<<" "<<b;
        printf(" %0.6f %0.6f",c,d);
    
    
    
        return 0;
    }
    
    • 1
      @ 2023-6-21 22:36:48

      #include <iostream> #include <cmath> #include <iomanip> #include <stack> #include <algorithm> #include <string> #include <cstring> #include <cstdio> using namespace std; const int INF = 0x3f3f3f3f; int main() { char a; int b; double c , d; cin >> a >> b >> c >> d; cout << a << " "; cout << b << " "; cout << fixed << setprecision(6)<< c << " "; cout << fixed << setprecision(6)<< d; return 0; }

      • 0
        @ 2022-9-9 21:19:09
        #include <bits/stdc++.h>
        
        using namespace std;
        
        int main()
        {
            char a;
        
            int b;
        
            float c;
        
            double d;
        
            cin >> a >> b >> c >> d;
        
            cout << a << " " << b;
        
            printf(" %0.6f %0.6f", c, d);
        
            return 0;
        }
        
        • -1
          @ 2023-6-4 20:05:26

          #include<iostream> #include<iomanip> #include<cmath> const int N=1e5+10; const int INF=0x3f3f3f3f; using namespace std; char a; int n; double m,x; int main() { cin>>a>>n>>m>>x; cout<<a<<" "; cout<<n<<" "; cout<<fixed<<setprecision(6)<<m<<" "; cout<<fixed<<setprecision(6)<<x; return 0; }

          • -1
            @ 2023-4-27 13:37:30
            #include<stdio.h>
            #include<iostream>
            using namespace std;
            int main(){
                char a;
                int b;
                float c;
                double d;
                cin >> a>>b>>c>>d;
                cout<< a<<" "<<b;
                printf(" %0.6f %0.6f",c,d);
            
            
            
                return 0;
            }
            
            • -1
              @ 2022-8-2 9:41:32

              要多做题

              #include<bits/stdc++.h>
              #include <queue>
              #include <math.h>
              #include <stack>
              #include <stdio.h>
              #include <iostream>
              #include <vector>
              #include <iomanip>
              #include <string.h>
              #include <algorithm>
              using namespace std;
              #define LL long long
              const int N = 1e6 + 10;
              const int INF = 0x3f3f3f3f;
              char a;//对于字符变量,占位符应为 %c;
              int b;//对于整形变量,占位符应为 %d;
              float c;//对于单精度浮点数,占位符应为 %f;
              double d;//对于双精度浮点数,占位符应为 %lf。
              //单精度浮点数保留 k 位小数的方式为:"%.kf";
              //双精度浮点数保留 k 位小数的方式为:"%.klf"。
              int main()
              {
              	cin >> a >> b >> c >> d;
              	printf("%c %d %.6f %.6lf ", a, b, c, d);
              	return 0;
              }
              • -4
                @ 2022-2-8 17:56:05

                #include <stdio.h> #include <iostream> #include <iomanip> using namespace std; int main() { char a; int b; float c; double d; cin>>a>>b>>c>>d; cout<<a<<" "<<b<<" "; cout<<fixed<<setprecision(6)<<c<<" "<<d<<endl;

                }

                • -5
                  @ 2021-10-25 22:14:32

                  a = input() b = int(input()) c = eval(input()) d = eval(input()) print(a,b,("%.6f" % c),("%.6f" % d))

                  • 1

                  信息

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