Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95058 杜春雨 一起找规律 C++ Accepted 1 MS 256 KB 176 2024-10-26 17:25:15

Tests(1/1):


Code:

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