More than 19.000 pupils have signed a petition claiming an A-level maths exam was too hard, comparing it to a "war crime".