fork(1) download
  1. #include <iostream>
  2.  
  3. auto max(int32_t a, int32_t b, int32_t c)->int32_t {
  4. return c - ((c - (a - ((a - b) & (a - b) >> 31))) & (c - (a - ((a - b) & (a - b) >> 31))) >> 31);
  5. }
  6.  
  7. auto main()->int {
  8. // test harness
  9. std::cout << max(2000000000, -200000000, 0) << std::endl;
  10. return EXIT_SUCCESS;
  11. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
0