Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106993 | 陈骏睿 | 一起找规律 | C++ | Accepted | 0 MS | 260 KB | 389 | 2025-01-17 10:44:57 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a=1,num=0; for(int i=1;i<=30;i++){ cout<<a<<" "; num=a*2+1; a=num; } return 0; }