View Code of Problem 115

#include<bits/stdc++.h>
using namespace std;

int main(void)
{
  long long n,f,q;
  while(cin>>n)
  {
    f=n*100000;
    q=int(pow(2,n))-1;
    cout<<q<<" "<<f<<endl;
  }
}

Double click to view unformatted code.


Back to problem 115