InnaSibirova

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

Nov 8th, 2019
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data