Markets are competitive if and only if P = NP