Files
python/LuoGu/RuMen/P1427.cpp

16 lines
273 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}