pat 1028 ruby, TLE on the last case...