sdfg八重神子2024-02-25 11:39:30发布于:广东8阅读0回复0点赞#include<bits/stdc++.h> using namespace std; int n,j,ct,kk; int main(){ cin>>n>>j; while(n--){ cin>>kk; if(kk>=j) ct+=j; else ct+=kk; } cout<<ct; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个