the sequence you need to print is the sequence you actually swapped … but there is an ambiguity the sample has no explanation for that and i was printing the values of the sequence which would produce the maximum sum… i.e all positive numbers … also in the sample case luckily matches my output this creates a big ambiguity … hence i request admin to please provide sample explanation…
don’t just leave that section blank…
here is my wa solution…
the culprit was this sentence … “Find its maximum possible value and a subsequence which you should select in order to obtain this maximum value.”
here i thought i need to print the sequence having maximum sum … rather than printing the sequence you selected to swap…
https://www.codechef.com/viewsolution/38049152