Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90522 包老师 一起找规律 C++ Accepted 0 MS 268 KB 184 2024-09-15 14:11:07

Tests(1/1):


Code:

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