2 solutions

  • 0
    @ 2024-7-20 20:43:16
    #include<bits/stdc++.h>
    #define ll long long
    
    using namespace std;
    
    int main(){
    	char a;
    	int b;
    	float c;
    	double d;
    	scanf("%c %d %f %lf", &a, &b, &c, &d);
    	printf("%c %d %.6f %.6lf", a, b, c, d);
    	return 0;
    }
    
    • 0
      @ 2024-7-20 19:29:44

      不想写的来copy题解

      #include<bits/stdc++.h>
      using namespace std;
      int i;char c;float f;double d;
      int main(){
      	cin>>c>>i>>f>>d;
      	cout<<c<<' '<<i<<' '<<fixed<<setprecision(6)<<f<<' '<<fixed<<setprecision(6)<<d;
      	return 0;
      }
      
      • 1

      Information

      ID
      6867
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      1
      Tags
      # Submissions
      9
      Accepted
      8
      Uploaded By