ICode9

精准搜索请尝试: 精确搜索
  • C++题解:1301:大盗阿福---较为简洁的代码,已通过2022-07-24 17:01:58

    //拒绝抄袭 //f[i]表示洗劫前i家店铺的最大收益 #include <iostream> #include <cstdio> using namespace std; const int N = 100010; int w[N], f[N]; int main(){ int T; //f[0] = 0, f[1] = w[1] cin >> T; /*因为不能洗劫相邻两家店铺,所以洗劫前i家店

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有