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