提交时间:2024-01-23 16:10:16
运行 ID: 124919
#include<iostream> #include<cstdio> #include <bits/stdc++.h> using namespace std; int main() { //freopen("forward.in","r",stdin); //freopen("forward.out","w",stdout); double a[5]; for(int i = 1; i <= 3; i++) { cin >> a[i]; } sort(a+1,a+3+1); for(int i = 1 ; i <= 3; i++) { cout << a[i] << " "; } return 0; }