2604: Minimum Time to Eat All Grains

Problem Statement