Submission #715091

# Submission time Handle Problem Language Result Execution time Memory
715091 2023-03-25T22:19:01 Z ELc0421 Logičari (COCI21_logicari) C++14
0 / 110
1 ms 212 KB
#include <iostream>
#include <map>

using namespace std;

int main () {
  int n;
  cin >> n;
  
  map<int, int> freq;
  for (int i = 1; i <= n; i++) {
    int a;
    cin >> a;
    freq[a]++;
    
  }
  
  int max_freq = 0;
  for (auto it = freq.begin(); it !=freq.end(); it++) {
    max_freq = max(max_freq, it->second);
    
  }
  int count = 0;
  
  cout << count << endl;
  
  return 0;
  }
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -