View Code of Problem 115

#include<stdio.h>
#include<math.h>
void main() {
	int n,rich,poor;
	while(~scanf("%d",&n)){
		poor=pow(2,n)-1;
		rich=100000*n;
		printf("%d %d\n",poor,rich);
	}
}

Double click to view unformatted code.


Back to problem 115