5 条题解

  • -2
    @ 2024-8-9 10:52:51

    #include<bits/stdc++.h> using namespace std; int stk[105],top; int main(){ int n,op; cin>>n; while(n--){ cin>>op; if(op1){ int x; cin>>x; stk[++top]=x; } else top--; } if(op2&&top0){ cout<<"impossible!"; } else if(top0){ cout<<"impossible!"; }else{ cout<<stk[top]; } return 0; }

    • -3
      @ 2024-8-9 10:42:08

      nengbunegfatijie,zaaaixiandengji.nifatijieduiniyouhaochuduiwoyeyouhaochu,liangquanqimeia,jiatouaoligei

      • -3
        @ 2024-8-9 10:40:33

        kuaifatijiea

        • -3
          @ 2024-8-9 10:40:11

          fatijiehuisima

          • -8
            @ 2024-8-9 10:43:47

            给我点差评

            • 1

            信息

            ID
            387
            时间
            1000ms
            内存
            256MiB
            难度
            3
            标签
            (无)
            递交数
            117
            已通过
            62
            上传者