acgo题库
  • 首页
  • 题库
  • 学习
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情提交记录(0)
  • 阿爸阿爸

    userId_undefined

    lrx

    37阅读
    0回复
    1点赞
  • 用 Python 最简单!

    解析: 前两行开大递归限制,因为 eval 表达式求值是递归的。 第三行直接爆算,最后膜 100001000010000 输出。

    userId_undefined

    暑 假 神(开学祭

    23阅读
    1回复
    1点赞
  • 我又来祸害题目了(

    userId_undefined

    复仇者_帅童

    小有名气CSP-J一等奖出题人
    24阅读
    0回复
    0点赞
  • 题解

    STL 栈 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; stack<long long> st; char op; long long x,ans=0; int main(){ cin>>x; st.push(x); while(cin>>op>>x){ if(op=='+'){ st.push(x); }else{ x=(st.top()*x)%10000; st.pop(); st.push(x); } } while(st.size()){ ans=(ans+st.top())%10000; st.pop(); } cout<<ans; return 0; }

    userId_undefined

    181****0362

    5阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页