Aim:
You are appointed as the assistant to a teacher in a school and she is correcting the answer sheets of the students. Each student can have multiple answer sheets. So the teacher has Q queries:
X Y : Add the marks Y to the student whose name is X.
X : Erase the marks of the students whose name is X.
X : Print the marks of the students whose name is X. (If X didn't get any marks print 0.)
Program Link: https://www.hackerrank.com/challenges/cpp-maps/problem
Aim: You are appointed as the assistant to a teacher in a school and she is correcting the answer sheets of the students. Each student can have multiple answer sheets. So the teacher has Q queries:
Details:
Programming Languages: