3 solutions
-
-2
#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