Submission #1099331

# Submission time Handle Problem Language Result Execution time Memory
1099331 2024-10-11T07:48:49 Z dmn223 Infinite Race (EGOI24_infiniterace2) C++17
0 / 100
1 ms 348 KB
#include <bits/stdc++.h>
using namespace std;
map<int,int>m;
int n, q, x, r;
int a[200001], b[200001];
int main()
{
    cin >> n >> q;
    while(q--)
    {
        cin >> x;
        m[x]++;
        if(m[x] > 1)
        {
            r = max(r, m[x]);
        }
        
    }
    cout << r;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 1 ms 344 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Halted 0 ms 0 KB -