#includeusing namespace std; string a[100001]; long long sum=0; int main() { while(true) { string s; cin>>s; if(s=="PUSH") { string ab; cin>>ab; a[++sum]=ab; } else if(s=="POP") { if(sum==0) cout<<"EMPTY"< 欢迎分享,转载请注明来源:内存溢出
STL 叫号软件
赞
(0)
打赏
微信扫一扫
支付宝扫一扫
评论列表(0条)