C++ soln Using priority queue and map,Diff results in run as custom output and near submit button


#1

For my code I am getting different results for the input 7 2 G 2 S 2 6 G 1 S 1 5 S 1 2 G 1 G 2 when run using custom output I am getting the expected output but when submitted it is showing my result as some thing different from expected output.