BowWow and the Timetable

Problem Name:
BowWow and the Timetable
Site:CodeForces
Links:
Tags:
Problem setters: