【MemSQL Start[c]UP 3.0 Round 1 A】 Declined Finalists

【链接】h在这里写链接


【题意】


在这里写题意

【题解】


max(最大值-25,0)

【错的次数】


0

【反思】


在这了写反思

【代码】

#include <bits/stdc++.h>
using namespace std;

int k,ans;

int main(){
    //freopen("F:\\rush.txt","r",stdin);
    ios::sync_with_stdio(0),cin.tie(0);
    cin >> k;
    for (int i = 1,x;i <= k;i++){
        cin >> x;
        ans = max(ans,x);
    }
    if (ans-25>=0){
        cout << ans-25<<endl;
    }else
        cout << 0 << endl;

    return 0;
}


原文地址:https://www.cnblogs.com/AWCXV/p/7626008.html