{ NOTE: it is recommended to use this even if you don't understand the following code } const MAXM = 100000; MAXL = 100000; var K, L, M, N, i : LongInt; A, B, leaves : Array[0..MAXM-1] of LongInt; T1, T2 : Array[0..MAXM-1] of Int64; U, V : Array[0..MAXL-1] of LongInt; ans : AnsiString; begin { uncomment the two following lines if you want to read/write from files assign(input, 'input.txt'); reset(input); assign(output, 'output.txt'); rewrite(output); } ReadLn(N, M, K); for i:=0 to M-1 do ReadLn(A[i], T1[i], B[i], T2[i]); ReadLn(L); for i:=0 to L-1 do ReadLn(U[i], V[i]); ans := ''; for i := 0 to MAXM-1 do leaves[i] := 0; { INSERT YOUR CODE HERE } WriteLn(ans); { only if answer is YES } for i:=0 to M-1 do Write(leaves[i], ' '); WriteLn(); end.