Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163157 冉骏杰 13猴子吃桃 C++ Accepted 1 MS 272 KB 157 2026-10-24 14:57:10

Tests(10/10):


Code:

#include<iostream> using namespace std; int a,b=1; int main (){ cin>>a; for(int i = 1;i<=a-1;i++){ b =2*(b+1); } cout<<b; return 0; }