Halum and ACM Park

Limits: 1527h46m40s, 512 MB

The newly built ACM park is getting very popular. Initially the park is empty. Each day people come in groups to visit the park. There is a special train ride inside the park. Halum is in charge of the rides. Each time he chooses some groups and put them on K trains for a ride. Trains are numbered from 1 to K from left to right. Each train has unlimited seats. Halum maintains following rules to arrange the rides:


This is a companion discussion topic for the original entry at https://toph.co/p/halum-and-acm-park