输出正确但RE了
查看原帖
输出正确但RE了
1012089
free35楼主2024/5/16 20:28
#include<bits/stdc++.h>
using namespace std;
int main(){
	stack<int> b;
	int a=1;
	do{
		cin>>a;
		b.push(a);
	}while(a!=0);
	while(!b.empty()){
		b.pop();
		cout<<b.top()<<' ';
		
	}
	return 0;
}
2024/5/16 20:28
加载中...