fork download
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4. #define SHOW_MINIMUM
  5.  
  6. int main() {
  7. int a, b, c;
  8.  
  9. std::cin >> a >> b >> c;
  10.  
  11. #ifdef SHOW_MINIMUM
  12. std::cout << std::min({a, b, c});
  13. #endif
  14.  
  15. #ifdef SHOW_MAXIMUM
  16. std::cout << std::max({a, b, c});
  17. #endif
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 15240KB
stdin
5 4 9
stdout
4