Error in problem :THEATRE

Please help me find the error in my solution for problem:THEATRE asked in FEB long challenge.
It is giving correct output for the given test cases.
My solution:https://www.codechef.com/viewsolution/29695206

Hello,
I would suggest you to try and find the issue yourself. Re-read the question again and try and make your own test case
I’ll give you a test case where your code fails.

Input :

1
A 12
B 12
B 12

Output of your code :

0
0

Expected Output :

-100
-100

1 Like

ohh thanks.Got the mistake I was making.