for i in range(0,C):
x, y, v=map(int, input().split(" "))
from itertools import groupby
b=[len(list(group)) for key, group in groupby(a)]
for j in range(0,n):
This code gave the correct output against question C of TCS mockvita both in Spyder IDE and in the IDE provided there. It passed the public test cases, however when I tried to submit, it displayed “Wrong answer” maybe due to failure to pass some private test cases. Can anyone point out any mistake that I might have made…any kind of help would be appreciated
P.S : Ignore the indentations…the original code has the correct indentations but as soon as i uploaded here, it all aligned this way.