fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long x ,y,z;
  6. cin>>x>>y>>z;
  7. long long max,mid,min;
  8. if (x<y&&y<z)
  9. {
  10. min==x;
  11. mid==y;
  12. max==z;
  13. }
  14. else if(y<x&&x<z)
  15. {
  16. min==y;
  17. mid==x;
  18. max==z;
  19. }
  20. else if(z<y&&y<x)
  21. {
  22. min==z;
  23. mid==y;
  24. max==x;
  25. }
  26. cout<<min<<endl;
  27. cout<<mid<<endl;
  28. cout<<max<<endl;
  29. cout<<endl<<endl;
  30. cout<<x<<endl;
  31. cout<<y<<endl;
  32. cout<<z<<endl;
  33. return 0;
  34. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
0
0
0


94782423546240
140722949744624
0