Canonical and log canonical thresholds of multiple projective spaces