#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 小鱼的数字游戏
最新推荐文章于 2025-09-17 12:32:20 发布
1861

被折叠的 条评论
为什么被折叠?



