제출 #1167991

#제출 시각아이디문제언어결과실행 시간메모리
1167991tsengangTeam Coding (EGOI24_teamcoding)C++20
12 / 100
37 ms4168 KiB
#include <bits/stdc++.h>
#define ll long long
#define ff first
#define ss second
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define pb push_back
#define ertunt return
#define vodka void
using namespace std;
int main() {
    ll n;
    cin >> n;
    ll k;
    cin >> k;
    map<ll,ll>m;
    ll ans = 0;
    for(ll i = 0; i < n; i++){
        ll a;
        cin >> a;
        m[a]++;
    }
    for(auto [x,y] : m)ans = max(ans,y);
    cout << ans << " 0";
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...