View Code of Problem 115

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

Double click to view unformatted code.


Back to problem 115