SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.     int n,m;
  6.     cin >> n >> m;
  7.     if(n==0){
  8.         cout << "Impossible";
  9.         return 17;
  10.     }  
  11.     if(n>=m)
  12.         cout << n << ' ';
  13.     if(n<m){
  14.         cout << ((n-1)+(1+(m-n))) << ' ';
  15.     }
  16.     cout << (m+n-1);   
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top