对于每个固定的j,我们应该选择的是小于j且a[i]最大的i,而且和a[j]的具体数值无关,这样从小到大枚举j顺便维护a[i]的最大值即可 /* ***********************************************Author :fistyCreated Time :2014/12/23 20:01:05File Name :uva110
【题目】 Problem E Open Credit System Input: Standard Input Output: Standard Output In an open credit system, the students can choose any course they like, but there is a problem. Some of the student