#include <stdio.h> #include <stdlib.h> #include<ctype.h> #include<string.h> #include<math.h> int main() { int n; double x1, x2; while (scanf("%d", &n) != EOF) { x1 = 0; x2 = 0; for (int i = 0; i <n; i++) { x1 +=pow(2,i); x2 += 10; } printf("%.0f %.0f0000\n", x1, x2); } return 0; } |
Double click to view unformatted code.