By introducing a semi-honest third party, we propose in this paper a novel QPC protocol using (n + 1)qubit (n ≥ 2) Greenberger-Horne-Zeilinger (GHZ) states as information carriers. The parameter n not only determines the number of qubits contained in a GHZ state, but also determines the probability that the third party can successfully steal the participants' data and the qubit efficiency. Our protocol uses the keys generated by quantum key distribution and bit-flipping for privacy protection, making both outsider and insider attacks invalid. In addition, our protocol does not employ any other quantum technologies (e.g., entanglement swapping and unitary operation) except necessary technologies such as preparing quantum states and quantum measurement, which can reduce the need for quantum devices. Furthermore, the GHZ states are prepared by participants rather than by the third party, which can reduce potential security risks.