Manthan, Codefest 19 (open for everyone, rated, Div. 1 + Div. 2) D. Restore Permutation(线段树)
timelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAnarrayofintegersp1,p2,…,pniscalledapermutationifitcontainseachnumberfrom1tonexactlyonce.Forexample,thefollo