fork download
  1. #include<iostream>
  2. #include<algorithm>
  3. using namespace std;
  4. int main() {
  5. int x[3];
  6. cin >> x[0] >> x[1] >> x[2];
  7. sort(x, x + 3);
  8. cout << x[0] << " " << x[1] << " " << x[2];
  9. return 0;
  10. }
Success #stdin #stdout 0s 5608KB
stdin
Standard input is empty
stdout
0 21878 293680640