Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a, b;
- cin >> a >> b;
- cout << "Minimum " << b + ((a - b) & (a - b) >> 31) << endl;
- cout << "Maximum " << a - ((a - b) & (a - b) >> 31);
- }
Add Comment
Please, Sign In to add comment