Counting the Counts

Salam is a school teacher. He takes ICT of class 8th. The head of the school wants to know how many students have got A+ in ICT. After calculating two times, he gets two different results. He becomes confused about the number of students who have got A+ in ICT. As a programmer, can you help him?


This is a companion discussion topic for the original entry at https://toph.co/p/counting-the-counts

@shojib_mu can you help to find what’s causing these submissions Runtime Error at 3rd case?
https://toph.co/s/418829
https://toph.co/s/418798