On a minimax problem of Ricceri