#include<stdio.h> #include <string.h> #include <math.h> int main(){ int n; while(scanf("%d",&n)!=EOF){ int i,j; long int a,b,c; a=0; b=0; c=1; for(i=1;i<=n;i++){ b +=100000; a +=c; c *=2; } printf("%ld %ld\n",a,b); } printf("\n"); return 0; } |
Double click to view unformatted code.