#include <bits/stdc++.h>
using namespace std;
stack<int> s;
int main()
{
int a,n=0;
while(cin >> a && a != 0){
n++;
s.push(a);
}
for(int i = 1; i <= n; i++){
printf("%d ",s.top());
s.pop();
}
return 0;
}
P1427 小鱼的数字游戏
最新推荐文章于 2024-09-10 08:28:20 发布