Isn't this an integer ? How can we have more values.First
Output
For each test case, output the number of places, the preamble may start.
Then after constraints it says
what is s7 ,s8 ,s9 ? What is S8 ?Output
For each line of input produce two or more line of output. The first line should contain the serial of output. The next lines should contain possible values of s7, s8 and s9. Please note than you should print only those solutions where s7 ? s8 ? s9. If there is more than one solution then print them in the ascending order of s7. If there is still a tie then print in the ascending order of S8. If no valid values of s7, s8 and s9 is found print the line “Peter has Forgotten Everything” instead. Look at the output for sample input for details.
Given a pattern x1,x2,x3..,.x60 (do sort it ), then generate the number of intervals (p1,q1) ,(p2,q2)...,(pn,qn) {n<=10^6} ,
now find how any unique intervals contains the part of pattern OR is it how many intervals contain the complete pattern. Can someone explain me this problem ?