546trt • 2天前
using namespace std;
int main () {
int a, n, s = 1; cin >> n; for (int a = 1; a <= n; a++) { s++; s = s * 2; } cout << s; return 0;
}
评论:
请先登录,才能进行评论