#include <bits/stdc++.h> using namespace std; #define ll long long int main () { int a[105],pos = 0,x; while (scanf("%d",&x) != 0) { a[++pos] = x; if (x == 0) break; } for (int i = pos;i >= 1;i--) printf("%d\n",a[i]); return 0; }
注册一个 oirush 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 oirush 通用账户