Files
python/LuoGu/RuMen/P1427.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

16 lines
273 B
C++

#include <bits/stdc++.h>
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] << " ";
return 0;
}