Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83949 小徐老师 13猴子吃桃 C++ Accepted 1 MS 276 KB 227 2024-07-15 10:34:57

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c = 1; for(int i = 1; i < n; i++) { c = (c + 1) * 2; } cout << c << endl; return 0; }