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:
parent
950a110448
commit
b9b24a49d6
16
problem/P6832/P6832.cpp
Normal file
16
problem/P6832/P6832.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user