#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) { float ms=0,fh=1; ms=n*100000; for(i=1;i<n;i++) { fh=pow(2,i)+1; } printf("%g %g\n",fh,ms); } return 0; } |
Double click to view unformatted code.