0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-28 12:31:59 +00:00

P6832 [Cnoi2020]子弦

R38953830
This commit is contained in:
Baoshuo Ren 2020-09-27 20:52:11 +08:00 committed by Baoshuo Ren
parent 950a110448
commit b9b24a49d6
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

16
problem/P6832/P6832.cpp Normal file
View File

@ -0,0 +1,16 @@
// R38953830
#include <bits/stdc++.h>
using namespace std;
int main() {
char c;
int a[30] = {0};
while (cin >> c) {
a[c - 'a']++;
}
sort(a, a + 26);
cout << a[25] << endl;
return 0;
}