Raslboyy

BitB

Oct 1st, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     ifstream fin("input.txt");
  8.     ofstream fout("output.txt");
  9.  
  10.     int n, m;
  11.     fin >> n >> m; fout << ((1 << n) | (1 << m)) << endl;
  12.  
  13.     fin.close();
  14.     fout.close();
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment