InnaSibirova

Минимум и максимум

Nov 8th, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a, b;
  5. cin >> a >> b;
  6. cout << "Minimum " << b + ((a - b) & (a - b) >> 31) << endl;
  7. cout << "Maximum " << a - ((a - b) & (a - b) >> 31);
  8. }
Add Comment
Please, Sign In to add comment