Submission #1046480

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