climbing

CF

Robot – Stair Climbing

There are N stairs to be climbed in a building. A robot can take only S different leaps each containing certain distinct…