Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128541 王晏林 一起找规律 C++ Accepted 1 MS 264 KB 178 2025-08-18 10:54:33

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ int n=1,k=1; cout<<k<<" "; for(int i=2;i<=30;i++){ n*=2; k+=n; cout<<k<<" "; } return 0; }