本地AC,上咕re
查看原帖
本地AC,上咕re
1011568
CodingFrog1楼主2024/7/22 10:07
#include<bits/stdc++.h>
#define int long long
using namespace std;
stack<int> st;
signed main()
{
	int y;
	while(y!=0)
	{
		cin>>y;
		st.push(y);
	}
	st.pop();
	while(!st.empty())
	{
		cout<<st.top()<<" ";
		st.pop();
	}
	return 0;
}

2024/7/22 10:07
加载中...