Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1286 李翼 一起找规律 C++ Accepted 0 MS 248 KB 154 2023-08-23 11:43:31

Tests(1/1):


Code:

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