Submission #1061119

#TimeUsernameProblemLanguageResultExecution timeMemory
1061119KerimSequence (APIO23_sequence)C++17
0 / 100
40 ms11576 KiB
#include "sequence.h" #include <vector> #include "bits/stdc++.h" using namespace std; int sequence(int N, std::vector<int> A) { std::vector<int> cnt(3); for (auto x: A){ assert(x<3); cnt[x] += 1; } return max(cnt[0], max(cnt[1], cnt[2])); }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...