您的位置:首页 > 数据库

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

2017-10-04 18:44 417 查看

【链接】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;
}


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐