Bro I found one mistake in your code till now not read full still.
Your output should be in same sequence as the input.
Suppose:
I/p: 370 500
50 360
40 90
Now first we sort above
40 90 C
50 360 J
370 500 J
Now the output should be in same order
Which is JJC NOT CJJ
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/9f1fb528-a873-47d8-83c2-6e1942862a54%40googlegroups.com.