Run ID:99556
提交时间:2024-11-30 11:41:08
#include <iostream> using namespace std; int main() { const int n = 30; long long s = 1; long long p = 2; for (int i = 0; i < n; ++i) { cout << s << " "; s += p; p*= 2; } cout << endl; return 0; }