您当前的位置: 首页 > 

HeartFireY

暂无认证

  • 1浏览

    0关注

    334博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

UCF Local Programming Contest Round 1A 训练联盟暑假场1 题解

HeartFireY 发布时间:2021-07-21 11:53:39 ,浏览量:1

UCF Local Programming Contest Round 1A 训练联盟暑假场1 题解 😊 | Powered By HeartFireY | UCF Local Programming Contest Round 1A Solution A.Briefcases Full of Money 😀 | 知识点:“打字速度”

链接:https://ac.nowcoder.com/acm/contest/18428/A

求成绩最大值对应的因数。

#include 
using namespace std;

int a[8] = {0, 1, 5, 10, 20, 50, 100, 200};
int bmax = 0, imax = 0;

signed main(){
    for(int i = 1; i > tmp;
        if(tmp * a[i] >= bmax * a[imax]) imax = i, bmax = tmp;
    }
    cout             
关注
打赏
1662600635
查看更多评论
0.0464s