For a perfectly inelastic body k -> infinity. Hooke's law gives x = F/k and F/k -> 0 when k -> infinity. For a perfectly inelastic body, x = 0 for any given force F.
If the rope is replaced with a steel rod this would be a completely different problem as a rod can absorb torque and a rope...