fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main ( )
  4. {
  5. long long x , y , z;
  6. cin >> x >> y >>z;
  7. if (x > y > z)
  8.  
  9. {
  10. cout << z << "\n" << y << "\n" << x << "\n" << "\n" << x << "\n" << y << "\n" <<z;
  11. }
  12.  
  13. else if (x > z > y)
  14.  
  15. {
  16. cout << y << "\n" << z << "\n" << x << "\n" << "\n" << x << "\n" << y << "\n" <<z;
  17. }
  18. else if (y > z > x)
  19.  
  20. {
  21. cout << x << "\n" << z << "\n" << y << "\n" << "\n" << x << "\n" << y << "\n" <<z;
  22. }
  23. else if (y > x > z)
  24.  
  25. {
  26. cout << z << "\n" << x << "\n" << y << "\n" << "\n" << "\n" << x << "\n" << y << "\n" <<z;
  27. }
  28.  
  29. else if (z > y > x)
  30.  
  31. {
  32. cout << x << "\n " << y << "\n"<< z << "\n" << "\n" << x << "\n" << y << "\n" <<z;
  33. }
  34.  
  35. else if (z > x > y)
  36.  
  37. {
  38. cout << y << "\n" << x << "\n" << z << "\n" << "\n" << x << "\n" << y << "\n" <<z;
  39. }
  40.  
  41. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty