欢迎光临散文网 会员登陆 & 注册

无,别看

2023-08-01 14:52 作者:我的世界Gr-M  | 我要投稿

#include <bits/stdc++.h>

using namespace std;

int main(){

    stack<int>s;

    int x,k;

    cin>>k;

    for(int i=0;i<k;i++){

    cin>>x;

    s.push(x);

}

cout<<s.size()<<endl;

s.pop();

s.pop();

cout<<s.top()<<endl;

x=s.size();

for(int i=0;i<x;i++){

cout<<s.top()<<",";

s.pop();

}

return 0;

}


无,别看的评论 (共 条)

分享到微博请遵守国家法律