1 条题解

  • 0
    @ 2026-8-22 15:03:30

    #include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for(int i = 2; i <= n; i += 2) { cout << i; if(i + 2 <= n) //不是最后一个数就输出空格 cout << " "; } return 0; }

    • 1

    信息

    ID
    231
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    递交数
    11
    已通过
    8
    上传者