fork download
  1. #include<iostream>
  2. #include<iomanip>
  3. #include<string>
  4. #include<cmath>
  5. using namespace std;
  6. int main()
  7. {
  8. int A,B,C,m,s,t,o,u;
  9. cin>>A>>B>>C;
  10. m=max(A,B);
  11. t=min(A,B);
  12. s=max(m,C);
  13. u=min(m,C);
  14. o=min(t,C);
  15. cout<<o<<endl;
  16. cout<<u<<endl;
  17. cout<<s<<endl;
  18. cout<<endl;
  19. cout<<A<<endl;
  20. cout<<B<<endl;
  21. cout<<C<<endl;
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 4484KB
stdin
Standard input is empty
stdout
22076
22076
1347377520

22076
1347377520
22076