제출 #198142

#제출 시각아이디문제언어결과실행 시간메모리
198142SuperJava자동 인형 (IOI18_doll)C++17
2 / 100
57 ms9976 KiB
#include "doll.h" #include <vector> #define sz(A) int(size(A)) using namespace std; vector<int> adj[200005]; void create_circuit(int M, vector<int> A) { for(int i = 0; i < sz(A)-1; i++){ adj[A[i]].push_back(A[i+1]); } vector<int> C(M+1); C[0] = A[0]; vector<int> X,Y; for(int i = 1; i <= M; i++){ if(size(adj[i]) == 0) continue; if(size(adj[i]) == 1){ C[i] = adj[i][0]; } } answer(C,X,Y); }
#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...