Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116141 唐诗阳 一起找规律 C++ Wrong Answer 0 MS 260 KB 280 2025-04-06 14:33:16

Tests(0/1):


Code:

#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a=1; cout<<"1 "; for(int i=1;i<=30;i++){ a+=a+1; cout<<a<<' '; } return 0; }


Run Info:

------Input------
0
------Answer-----
1 3 7 15 31 63 127 255 511 1023 2047 4095 8191 16383 32767 65535 131071 262143 524287 1048575 2097151 4194303 8388607 16777215 33554431 67108863 134217727 268435455 536870911 1073741823
------Your output-----
1 3 7 15 31 63 127 255 511 1023 2047 4095 8191 16383 32767 65535 131071 262143 524287 1048575 2097151 4194303 8388607 16777215 33554431 67108863 134217727 268435455 536870911 1073741823 2147483647