HackerRank 上的conference schedule 问题

原帖地址:一亩三分地

given a series of meetings, each with a start time, end time and priority, schedule these meetings into a limited number of rooms, dropping the meetings that are lowest priority
for example:
INPUT:
3(# of rooms)
5(# of meetings)
1, 1300, 1400, 100(priority) “meeting 1″
2, 1345, 1445, 100, ” meeting 2″
. From 1point 3acres bbs3, 1330, 1350,100 ,“meeting 3”
4,1500, 1700, 75,”meeting 4“
5, 1300,1400,90,”meeting 5“

OUTPUT:
1 3 2 4 (会议的序列)

请教下大牛们,有什么good idea?