Simulare Bacalaureat 2019, clasa a XII-a, mate-info, Ex II.1 - rezolvat integral