Submission #1061123

#TimeUsernameProblemLanguageResultExecution timeMemory
1061123KerimSequence (APIO23_sequence)C++17
0 / 100
75 ms11708 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(1 <= x and x <= 3); cnt[x-1] += 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...