#include <stdio.h> using namespace std; int main(){ int k = 1; int N; scanf("%d", &N ); int sum = 0; while( --N ){ k = (k+1)*2; } printf("%d", k ); return 0; }
Double click to view unformatted code.