1 条题解

  • 1
    @ 2024-10-24 15:48:28
    #include<iostream>
    using namespace std; 
    int x[100],c = 0;
    int main() {
        for (int i = 0; ;i++) {
            cin >> x[i];
            if (x[i] == 0) break; c = i;
        }
        for (int j = c;j >= 0;j--) cout << x[j] << " ";
        cout << endl;
        return 0;
    }
    

    信息

    ID
    5485
    时间
    1000ms
    内存
    125MiB
    难度
    1
    标签
    递交数
    210
    已通过
    145
    上传者