Lu1203_160320_nsor

easy
  Lu1203_160320_nsor 
                               
                               
                               

Input Format

ass discussed in class

Output Format

ass discussed in class

Constraints

ass discussed in class

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
9
1 3 2 4 8 6 5 9 1
Output
-1 2 1 1 6 5 1 1 -1
Previous
Lu1203_160320_ngol
Next
F1201-lecture2-190320-dijkstra

Related Questions