Similar Subsequence Accepted : Submit : Time Limit : MS Memory Limit : KB Similar Subsequence For given sequence A=(a1,a2,…,an), a sequence S=(s1,s2,…,sn) has shape A if and only if: si=min{si,si+,…,sn} ; si=max{si,si+,…,sn} . Given sequence B=(b1,b2…