View Code of Problem 115

#include <stdio.h>
#include <string.h>
#include <math.h>
#define N 10000
int main()
{
    int n;
    int i;
    while(scanf("%d",&n)!=EOF&&n<=30)
	{
		int ms=0,fh=1;
		ms=n*100000;
		for(i=1;i<n;i++)
		{
			fh=pow(2,i)+1;
		}
		printf("%d %d\n",fh,ms);
	}
	return 0; 
}

Double click to view unformatted code.


Back to problem 115