Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85354 卢语涵 一起找规律 C++ Accepted 1 MS 272 KB 182 2024-07-17 10:05:27

Tests(1/1):


Code:

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