src code for problems A and B from TP1; added TP0 problem description