- Read the problem statement, it says number of elements in list , t<=10^6. Hence declare array of 10^6 size.
- Print newline after each output (not before).
- Don’t post the entire code here, please provide a link as below.
- Here is your corrected code : http://ideone.com/sT7wdW