Submission #1038816

#TimeUsernameProblemLanguageResultExecution timeMemory
1038816fv3Beech Tree (IOI23_beechtree)C++17
5 / 100
44 ms6748 KiB
#include <bits/stdc++.h> #include "beechtree.h" using namespace std; vector<int> beechtree(int N, int M, vector<int> P, vector<int> C) { vector<int> b(N); b.back() = 1; for (int i = N - 2; i >= 0; i--) { if (C[i+1] != C.back()) break; b[i] = 1; } return b; }
#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...