Assume you are given t1, t2, t3,... tn amount of tasks to finish every day. And once you can start working, you can only finish c1, c2, c3,.. cn tasks until spending 1 day r