meetingroom: graph solution(fail on OnlineJudge)