简单又直白
2026-07-30 19:46:23
发布于:广东
12阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
//cout << 'b'+1-1-96;
int n;
cin >> n;
int maxn = -1000000000;
for(int i = 1;i <= n;i++){
char x;
cin >> x;
int h = x - 96;
maxn = max(maxn , h);
}
cout << maxn;
return 0;
}
这里空空如也







有帮助,赞一个