problem: (B) Petya and Exam Solve In C/C++ Archive