4 条题解

  • 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;
    }
    
    • 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-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;
          }
          • 1

          信息

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