View Code of Problem 115

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
	int n,sum=0;
	while(scanf("%d",&n)!=EOF){
		sum+=pow(2,n-1);
		printf("%d %d\n",sum,100000*n);
	}
}

Double click to view unformatted code.


Back to problem 115