제출 #848822

#제출 시각아이디문제언어결과실행 시간메모리
848822rainboy참나무 (IOI23_beechtree)C++17
5 / 100
55 ms4432 KiB
#include "beechtree.h" using namespace std; typedef vector<int> vi; vi beechtree(int n, int m, vi pp, vi cc) { int line = 1; for (int i = 1; i < n; i++) if (pp[i] != i - 1) { line = 0; break; } vi ans(n, 0); if (line) { ans[n - 1] = 1; for (int i = n - 2; i >= 0 && cc[i + 1] == cc[n - 1]; i--) ans[i] = 1; } return ans; }
#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...