View Code of Problem 115

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

Double click to view unformatted code.


Back to problem 115