#include <iostream> (30316)#include <vector> #include <algorithm> using namespace std; int main() { int T; cin >> T; while (T--) { int a, b, c, d, k; cin >> a >> b >> c >> d >> k; vector<int> numbers = {a, b, c, d}; // 进行k次操作 for (int i = 0; i < k; ++i) { // 找到列表中的最小数 auto min_iter = min_element(numbers.begin(), numbers.end()); // 将最小数加1 *min_iter += 1; } // 计算乘积 int product = 1; for (int num : numbers) { product *= num; } cout << product << endl; } return 0; }  

相关推荐

程序员花海:实习和校招简历正确格式应该是教育背景+实习+项目经历+个人评价 其中项目经历注意要体现业务 实习经历里面的业务更是要自圆其说 简历模板尽可能保持干净整洁 不要太花哨的
秋招吐槽大会
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务