#include <bits/stdc++.h> using namespace std; int x, y = 0, z, a, b, c, t[100000];
int main () { for (int i = 1;; i++) { cin >> t[i]; if (t[i] == 0) { break; } y++; } for (int i = y; i >= 1; i--) { cout << t[i] << ' '; } return 0; }
使用您的 蒙青创OJ 通用账户