Submission #841424

#TimeUsernameProblemLanguageResultExecution timeMemory
841424model_codeBeech Tree (IOI23_beechtree)C++17
5 / 100
67 ms6308 KiB
// correct/subtask-line.cpp #include "beechtree.h" using namespace std; vector<int> beechtree(int N, int /*M*/, vector<int> /*P*/, vector<int> C) { vector<int> t(N, 1); bool ok = true; for (int v = N - 2; v >= 0; --v) { t[v] = ok; if (C[v] != C[v + 1]) ok = false; } return t; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...