3 solutions

  • 1
    @ 2025-3-28 13:23:50

    胡桑圣经

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	double a,b,c;
    	cin>>a>>b>>c;
    	cout<<c<<" "<<a<<" "<<b;
    	return 0;
    }
    
    • 1
      @ 2024-12-26 13:51:57
      ~~6~~
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double a, b, c;
      	cin >> a >> b >> c;
      	cout << c << " " << a << " " << b;
      	
      	
      	return 0;
      }
      
      
      • -2
        @ 2024-11-16 13:44:07
        #include <bits/stdc++.h>
        using namespace std;
        int main()
        {
        	double a,b,c;
        	cin>>a>>b>>c;
        	if(a>b)
        	{
        		if(b>c)
        		{
        			cout<<c<<" "<<b<<" "<<a;
        		}
        		else if(a>c)
        		{
        			cout<<b<<" "<<c<<" "<<a;
        		}
        		else
        		{
        			cout<<b<<" "<<a<<" "<<c;
        		}
        	}
        	else
        	{
        		if(b<c)
        		{
        			cout<<a<<" "<<b<<" "<<c;
        		}
        		else if(a>c)
        		{
        			cout<<c<<" "<<a<<" "<<b;
        		}
        		else
        		{
        			cout<<a<<" "<<c<<" "<<b;
        		}
        	}
        	return 0;
        }
        

        简单

        • 1

        Information

        ID
        10
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        7
        Tags
        # Submissions
        89
        Accepted
        22
        Uploaded By