#include int MIN(int p, int q) { return pq?p:q; } int a, N, tid[20], over[20], min; void MLX(int now, int nover) { int p, q, r, m, n; for(p=0;p