Test 1
Failed
Test Input:
ADD 1 TaylorSwift 100 10
ADD 2 TaylorSwift 101 -10
ADD 3 TaylorSwift 99 5
ADD 4 TaylorSwift 102 -5
ADD 5 TaylorSwift 100 2
DEL 1 TaylorSwift
TaylorSwift 2
Expected Output:
TaylorSwift
0 102 5
0 101 10
2 100 0
5 99 0
Your Output:
TaylorSwift
0 102.0 5
0 101.0 10
Test 2
Failed
Test Input:
ADD 1 TaylorSwift 100 10
ADD 2 TaylorSwift 101 -10
ADD 3 TaylorSwift 99 5
ADD 4 TaylorSwift 102 -5
ADD 5 TaylorSwift 98 2
ADD 6 TaylorSwift 99 5
DEL_PRICE TaylorSwift 100
TaylorSwift 1
Expected Output:
TaylorSwift
0 101 10
10 99 0
Your Output:
TaylorSwift
0 102.0 5