From 2efad7c60d86cebe3166ac0d0d22b6c72aab7cfb Mon Sep 17 00:00:00 2001 From: hanyixuanten <105723997+hanyixuanten@users.noreply.github.com> Date: Mon, 24 Aug 2026 20:50:53 +0800 Subject: [PATCH] new file: P11231.cpp --- P11231.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 P11231.cpp diff --git a/P11231.cpp b/P11231.cpp new file mode 100644 index 0000000..a557709 --- /dev/null +++ b/P11231.cpp @@ -0,0 +1,19 @@ +#include +using namespace std; +int n; +int a; +map cou; +int main() +{ + scanf("%d", &n); + for (int i = 1; i <= n; ++i) + { + scanf("%d", &a); + cou[a]++; + } + int maxx = 0; + for (auto k : cou) + maxx = max(maxx, k.second); + printf("%d\n", maxx); + return 0; +} \ No newline at end of file