Submission #1099435

# Submission time Handle Problem Language Result Execution time Memory
1099435 2024-10-11T09:58:10 Z andreiqwer Infinite Race (EGOI24_infiniterace2) C++17
0 / 100
36 ms 2384 KB
#include <iostream>

using namespace std;

int n, q, frecv[200001], maxval=0;
int main()
{
    cin>>n>>q;
    for(int i=1; i<=q; i++)
    {
        int x;
        cin>>x;
        frecv[x]++;
        maxval=max(maxval, frecv[x]);
    }

    cout<<maxval-1;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 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 Correct 1 ms 344 KB Output is correct
2 Correct 16 ms 832 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 36 ms 2384 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Incorrect 16 ms 688 KB Output isn't correct
8 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 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 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Halted 0 ms 0 KB -