Submission #1038999

#TimeUsernameProblemLanguageResultExecution timeMemory
1038999ZicrusBeech Tree (IOI23_beechtree)C++17
5 / 100
44 ms6860 KiB
#include <bits/stdc++.h> #include "beechtree.h" using namespace std; typedef long long ll; vector<int> beechtree(int n, int m, vector<int> p, vector<int> c) { vector<int> res(n); bool works = true; for (int i = n-1; i >= 0; i--) { res[i] = works; if (c[i] != c.back()) works = false; } 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...