Codeforce 1151D Stas and the Queue at the Buffet (公式推导 排序)
D.StasandtheQueueattheBuffettimelimitpertest:1secondmemorylimitpertest:256megabytesDuringabreakinthebuffetofthescientificlyceumoftheKingdomofKremland,therewasformedaqueueofnhighschoolstudentsnumberedf