View Code of Problem 115

#include <iostream>
#include <cmath> 
using namespace std;
int main(){
	int n;
	while(cin>>n){
		long long r1,r2;
		r1=pow(2,n)-1;
		r2=n*100000;
		cout<<r1<<" "<<r2<<endl;
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 115