TWTCLOSE problem need help with test cases

Https://www.codechef.com/viewsolution/50199113
Im not able to figure out what test cases my code doesn’t work please help me

Try this test case.

Input

10 3
CLICK 10
CLOSEALL
CLICK 10
1 Like

ahh now i get the mistake , my code can’t scan 2 digit numbers

Just 2?

sorry i mean to say more than 1, apologies, it was an easy fix , i overcomplicated it by trying to extract the number from the string , it was a waste of time

2 Likes