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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include<iostream> using namespace std; int main() { long long counto,countx,maxo,maxx; while (cin>>counto>>countx>>maxo>>maxx) { maxo=min(counto,maxo); maxx=min(countx,maxx); if (maxo0) cout<<maxx<<endl; else if (maxx0) cout<<maxo<<endl; else if ((counto+1)*maxx<countx) cout<<(counto+1)*maxx+counto<<endl; else if ((countx+1)*maxo<counto) cout<<(countx+1)*maxo+countx<<endl; else cout<<counto+countx<<endl; } return 0; }

    userId_undefined

    双面人(生活,就是一场豪赌)

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

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

首页